This might answer your question: http://groups.google.com/group/django-developers/browse_thread/thread/45bce29f331acb5e
Kevin Coyner wrote: > I am using the Auth system in django and have a separate app People > that I'm using to keep more detailed info (i.e. address, phone, etc) > on my users. I presume from my docs reading that this is the best way. > > Question: Can I use InlineModelAdmin to handle new user input from > just onepage, preferably my People admin page? > > > Here's what I've tried in people/admin.py: > > from django.contrib import admin > from django.contrib.auth.models import User > from local1042.people.models import People > > class PeopleInline(admin.TabularInline): > model = User > > class PeopleAdmin(admin.ModelAdmin): > search_fields = ['username__last_name'] > inlines = [ PeopleInline ] > > admin.site.register(People, PeopleAdmin) > -------------------- > > But when I try this I get: > > <class 'django.contrib.auth.models.User'> has no ForeignKey to <class > 'local1042.people.models.People'> > > > But in people/models.py I have: > > from django.contrib.auth.models import User > class People(models.Model): > username = models.OneToOneField(User, parent_link=False) > address = ... etc > ---------------------- > > Any pointers would be appreciated. Thanks. > > > --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---