Skip to content

Commit

Permalink
Remove unused signal receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhai committed Aug 9, 2023
1 parent ccc0f24 commit 4c31da4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions base/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ def ready(self):
except Exception as e:
pass
from django.contrib.auth.models import User
from .models import create_user_profile, save_user_profile
from .models import create_user_profile
post_save.connect(create_user_profile, sender=User)
post_save.connect(save_user_profile, sender=User)
5 changes: 0 additions & 5 deletions base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,3 @@ def create_user_profile(sender, instance, created, **kwargs):
)
email_sender = EmailSender(email_template_cls(user=instance))
email_sender.send()


def save_user_profile(sender, instance, **kwargs):
if hasattr(instance, 'profile'):
instance.profile.save()

0 comments on commit 4c31da4

Please sign in to comment.