Opened 16 years ago
Last modified 16 years ago
#7370 closed
Changing user in admin deletes UserProfile — at Initial Version
Reported by: | Jesaja Everling | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | UserProfile Admin User deletes | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hello everybody!
For me, changing a user in the admin interface, for example adding a first_name, deletes the corresponding UserProfile.
This doesn't happen when using the shell, only via the admin interface.
Both in current svn, and in 0.96.2.
I have created the UserProfile like so:
models.py:
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)
settings.py:
AUTH_PROFILE_MODULE = 'myapp.UserProfile'
It works great, just changing a user in the admin interface deletes the UserProfile.
If this is in any way related to a wrong setup on my side, please excuse this ticket!
Best Regards!