Fix signal handling with correct User class

This commit is contained in:
Neil Martinsen-Burrell 2022-09-27 13:23:41 -05:00
parent 60f282752b
commit c5f5b3ce31
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184

View file

@ -1,8 +1,7 @@
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import UserProfile
from .models import User, UserProfile
@receiver(post_save, sender=User)