I just want to add the subscription date in the User list in the Django CRUDAdministration site. How can I do that ?
Thank you for your help
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)
这篇关于如何在 Django CRUD 中自定义 auth.User 管理页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!