Changing User ModelAdmin for Django admin
Posted
by Leon
on Stack Overflow
See other posts from Stack Overflow
or by Leon
Published on 2010-03-31T11:39:48Z
Indexed on
2010/03/31
11:43 UTC
Read the original article
Hit count: 344
django-admin
|django
How do you override the admin model for Users? I thought this would work but it doesn't?
class UserAdmin(admin.ModelAdmin):
list_display = ('email', 'first_name', 'last_name')
list_filter = ('is_staff', 'is_superuser')
admin.site.register(User, UserAdmin)
I'm not looking to override the template, just change the displayed fields & ordering.
Solutions please?
© Stack Overflow or respective owner