As well, you may need to consider a signal for User.post_save that creates, or saves, a user profile when a User is touched.
http://code.djangoproject.com/wiki/Signals On Jul 7, 12:04 pm, Alessandro <[EMAIL PROTECTED]> wrote: > 2008/7/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > > yes, but when i do that it doesn't show up anywhere in the admin. i'm > > not getting any errors and running it in development mode right now. > > > class UserProfile(models.Model): > > url = models.URLField() > > home_address = models.TextField() > > phone_numer = models.PhoneNumberField() > > user = models.ForeignKey(User, unique=True) > > > then in settings: > > > AUTH_PROFILE_MODULE = 'mccms.UserProfile' > > You will have another class in admin. > > If you want to see the UserProfile data in your user admin interface > you must do this: > > 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) > > and you MUST have one field on UserProfile with core=True. It cannot > be user, or it will create problems. > maybe you want to do: > > url = models.URLField(core=True) > > if the url is empty, it will delete UserProfile. > -- > Alessandro Ronchi > Skype: aronchihttp://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 -~----------~----~----~----~------~----~------~--~---