I did this:
http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/

wrote a data migration.py to convert data.  I browse to the django admin ui, 
and 
I can see the data.  if I edit it, or not edit it, then hit Save, it deletes 
the 
  User Profile record.  I hit history, and is confirms:

Changed last login and date joined. Deleted user profile "UserProfile object".

If I add a new user, the user record gets saved, the Profile does not. (so I 
don't think we need to dig into migrate.py, but I will post it if someone 
thinks 
it will help.

How can I find out why it is doing that?

Here is my model and migrate.py

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

     title = models.CharField("Title", core=True, max_length=80, blank=True, 
null=True)
     surname = models.CharField("Surname", max_length=65, core=True, 
blank=True, 
null=True)

Carl K

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to