Code

Changes between Initial Version and Version 1 of Ticket #7370


Ignore:
Timestamp:
06/16/08 08:29:53 (6 years ago)
Author:
ramiro
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7370

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #7370 – Description

    initial v1  
    55Both in current svn, and in 0.96.2. 
    66I have created the UserProfile like so: 
     7 
    78models.py: 
     9{{{ 
    810class UserProfile(models.Model): 
    911    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) 
     12}}} 
    1013 
    1114settings.py: 
     15{{{ 
    1216AUTH_PROFILE_MODULE = 'myapp.UserProfile' 
    13  
     17}}} 
    1418 
    1519It works great, just changing a user in the admin interface deletes the UserProfile.