[Answer]-Update only from's visible fields if parent model doesn't exist

1👍

If I get you right you should be using get_or_create (see docu)

user_profile = UserProfile.objects.get_or_create(pk=request.user.id)

Furthermore you need to derive from AbstractBaseUser instead of User.

class UserProfile(AbstractBaseUser):
       birth_date = models.DateField()
       ....

See the docu for Specifying a custom User model.

Leave a comment