django-user-accounts
django-user-accounts copied to clipboard
Missing documentation: UserProfile
Hello,
I saw in the docs this Snippet:
@receiver(post_save, sender=User)
def handle_user_save(sender, instance, created, **kwargs):
if created:
UserProfile.objects.create(user=instance)
But it never mentions what a UserProfile object should be. Why the docs write those lines and what should the UserProfile object look like?
@martinvol Imagine that you have your own model called user profile, and you need that to be created during the sign-up phase. That's the way you should do it.