bax...@gretschpages.com wrote: >> You can do that by creating an >> InlineModelAdmin:http://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodelad... >> > > How, exactly? I tried this, with no luck: > > from user_profiles.models import Profile > from django.contrib.auth.admin import UserAdmin > > class ProfileInline(admin.TabularInline): > model = Profile > > UserAdmin.inlines = [ProfileInline] > In the admin for my app, I added the following code. It works, and I can't remember where I found it but it was someone's blog.
# # Make our profile show up in the user admin # admin.site.unregister(User) class UserProfileInline(admin.StackedInline): model = UserProfile filter_horizontal = ['myField'] class UserProfileAdmin(UserAdmin): inlines = [UserProfileInline] -- Carl Zmola 301-562-1900 x315 czm...@woti.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.