#7681: Updating user (from auth model) in admin does not create nor update
UserProfile
-----------------------------+----------------------------------------------
 Reporter:  conchas          |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Admin interface  |     Version:  SVN       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 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 http://www.b-list.org/weblog/2006/jun/06
 /django-tips-extending-user-model/#c3395

 This is my code:

 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)
     home_address = models.TextField(core=True)
 }}}

 settings.py:

 {{{
 AUTH_PROFILE_MODULE = 'myapp.UserProfile'
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7681>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to