Skip to content

Commit

Permalink
remove redundant signal
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Dec 11, 2024
1 parent bef7520 commit 1354c76
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tom_common/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
from tom_common.models import Profile


@receiver(post_save, sender=User)
def create_profile(sender, instance, created, **kwargs):
"""When a new user is created, create a profile for them."""
if created:
Profile.objects.create(user=instance)


@receiver(post_save, sender=User)
def save_profile(sender, instance, **kwargs):
"""When a user is saved, save their profile."""
Expand Down

0 comments on commit 1354c76

Please sign in to comment.