Skip to content

Commit

Permalink
Fix redis dependency and mockdata generation error (#164, #163) (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
saintlyzero authored Apr 4, 2023
1 parent 647ab73 commit c37cf16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions profile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c37cf16

Please sign in to comment.