>From what I've heard it will be easier to do what we all seem to want in the newforms-admin branch, which should be merged by the time of the release of Django 1.0.
On Jun 21, 2:49 am, ristretto <[EMAIL PROTECTED]> wrote: > You'd think, indeed. I'm wondering if there's a work around or best > practice way to handle it. I noticed in the docs stating to wrap > access to the user.get_profile() call around a try: except: and create > it if you get an error. But, I don't see how to do that simply in the > Admin system. > > On Jun 21, 3:03 am, Deniz Dogan <[EMAIL PROTECTED]> wrote: > > > On 20 Juni, 05:26, <[EMAIL PROTECTED]> wrote: > > > > I have looked through the docs and search the group and web. Seems > > > other's > > > are asking the question, but I haven't seen an answer yet. > > > > class UserProfile(models.Model): > > > country = models.ForeignKey(Country, core=True) > > > user = models.ForeignKey(User, unique=True, > > > edit_inline=models.TABULAR, > > > core=True) > > > > When Isavea User in theAdminpage, the country (from this UserProfile) is > > > not getting saved. > > > > The list of Countries are shown in the menu, there are no errors, but the > > > DB > > > table userprofile is empty, and when I come back to the Useradminpage, no > > > country is selected. > > > > Seems that thesaveis getting dropped on the floor. > > > > I have > > > > AUTH_PROFILE_MODULE = 'app.userprofile' > > > > set. The system doesn't throw any errors. Just doesn'tsave. > > > > I saw a post suggesting subclassing User and overriding saving tosavemy > > >profile But, I can't find this recommended in the docs. The documented way > > > to do this is has nothing to do with subclassing > > > > Please clarify. > > > I have the exact same problem. You'd think Django would have a neat > > way of handling this, but it seems to me that it doesn't. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---