How to customize the auth.User Admin page in Django CRUD?

Natim picture Natim · Feb 16, 2010 · Viewed 20.3k times · Source

I just want to add the subscription date in the User list in the Django CRUD Administration site. How can I do that ?

Thank you for your help

Answer

Natim picture Natim · Feb 16, 2010

I finally did like this in my admin.py file :

from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User

UserAdmin.list_display = ('email', 'first_name', 'last_name', 'is_active', 'date_joined', 'is_staff')

admin.site.unregister(User)
admin.site.register(User, UserAdmin)