On Dec 4, 5:26 am, Kai Timmer <em...@kait.de> wrote: > 2009/12/3 bax...@gretschpages.com <mail.bax...@gmail.com>: > > > How, exactly? I tried this, with no luck: > > I can't get it working too. Can someone please provide a simple > example? That would be really great.
I have an app called person which has my UserProfile in it: in the admin.py, I have the following: from django.contrib import admin, auth from reversion.admin import VersionAdmin from django.contrib.auth.admin import UserAdmin if auth.models.User in admin.site._registry: admin.site.unregister(auth.models.User) from person.models import Person class PersonInline(admin.StackedInline): model = Person verbose_name_plural = u"details" # fieldsets = ((None, {'fields': (('first_name', 'last_name'), 'email')}),) from admin_helpers.helpers import admin_link class UserAdmin(UserAdmin, VersionAdmin): inlines = (PersonInline,) filter_horizontal = ('groups',) list_filter = ('groups',) fieldsets = ( (None, {'fields': ('username', 'password', ('is_active', 'is_staff', 'is_superuser'))}), ('Groups', {'fields': ('groups',)}), ) admin.site.register(auth.models.User, UserAdmin) -- 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.