From c37cf162ed29a64d7f60ebaf3e17e8b7a704dca5 Mon Sep 17 00:00:00 2001 From: Shubham Dalvi Date: Mon, 3 Apr 2023 21:12:22 -0400 Subject: [PATCH] Fix redis dependency and mockdata generation error (#164, #163) (#165) --- profile/models.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/profile/models.py b/profile/models.py index c98d8a06..fd007561 100644 --- a/profile/models.py +++ b/profile/models.py @@ -48,12 +48,12 @@ class GlobalAlert(models.Model): # object's save method, all saving is done with the User model. # @receiver(post_save, sender=User) -def create_user_profile(_, instance, created, **__): +def create_user_profile(sender, instance, created, **__): if created: Profile.objects.create(user=instance, notifications=Notifications.objects.create()) @receiver(post_save, sender=User) -def save_user_profile(_, instance, **__): +def save_user_profile(sender, instance, **__): instance.profile.save() instance.profile.notifications.save() diff --git a/requirements.txt b/requirements.txt index ef63792d..c1ed4d91 100644 --- a/requirements.txt +++ b/requirements.txt @@ -49,7 +49,7 @@ pytz==2018.7 PyYAML==3.13 raven==6.9.0 rcssmin==1.0.6 -redis +redis==3.0.1 requests==2.21.0 rjsmin==1.0.12 six==1.12.0