Opened 10 years ago

Closed 10 years ago

#7681 closed (invalid)

Updating user (from auth model) in admin does not create nor update UserProfile

Reported by: conchas Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I have created a UserProfile to extend the User from Auth model, and when I try to edit a UserProfile inline in User edit view I see a message saying that the user was updated succefully, but the UserProfile is neither updated (when it's already created) nor created. I can create and update the UserProfiles from admin but not inline in the User edit view.

This issue is also mentioned at

This is my code:

class UserProfile(models.Model):
    user = models.ForeignKey(User, unique=True, edit_inline=models.TABULAR, num_in_admin=1,min_num_in_admin=1, max_num_in_admin=1, num_extra_on_change=0, core=True)
    home_address = models.TextField(core=True)

AUTH_PROFILE_MODULE = 'myapp.UserProfile'

Change History (1)

comment:1 Changed 10 years ago by Eric Holscher

Resolution: invalid
Status: newclosed

You need to update your user profile module in the save() method.

Note: See TracTickets for help on using tickets.
Back to Top