django-user-accounts icon indicating copy to clipboard operation
django-user-accounts copied to clipboard

Missing documentation: UserProfile

Open martinvol opened this issue 7 years ago • 1 comments

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 avatar Mar 01 '17 16:03 martinvol

@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.

jonathan-s avatar May 24 '20 15:05 jonathan-s