from django.contrib.auth.admin import UserAdminfrom django.contrib.auth.models import UserUserAdmin.list_display = ('email', 'first_name', 'last_name', 'is_active', 'date_joined', 'is_staff')admin.site.unregister(User)admin.site.register(User, UserAdmin)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)