2008/6/21, ristretto <[EMAIL PROTECTED]>:
>
>  Was there any solution to this?  I'm looking through the tickets,
>  wiki, docs, web, and now the source trying to figure out how to get my
>  profile data saved along with a User in the admin.  Anyone have that
>  working?   My situation is the same as this poster's, except I don't
>  get any error; I just get no profile record created.
>
>  If I create a new user, no profile record is created in the DB.
>
>  Incidentally, my profile model has one field which is a ForeignKey.
>
>  class UserProfile(models.Model):
>     country = models.ForeignKey(Country, core=True)
>     user = models.ForeignKey(User, unique=True,
>  edit_inline=models.TABULAR)

Do not use the foreignkey as core, but another field. This works:
- - - - -
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)

nomeditta = models.CharField("Nome Ditta", max_length=100, core=True)
- - - - -
-- 
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net

SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928

Rispetta l'ambiente: se non ti è necessario, non stampare questa mail

--~--~---------~--~----~------------~-------~--~----~
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