mark readonly user signup fields

admin-improvements
Nate Smith 2019-07-10 11:27:29 -05:00
parent e9d1fea15e
commit 2c71afebc2
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class TownieAdmin(admin.ModelAdmin):
inlines = [PubkeyInline]
list_display = ('username', 'reviewed', 'email')
ordering = ('reviewed',)
readonly_fields = ('reasons', 'plans', 'socials')
exclude = ('first_name', 'last_name', 'password', 'groups', 'user_permissions', 'last_login', 'is_staff', 'is_active', 'is_superuser')
actions = (bulk_review,)
search_fields = ('username', 'email', 'displayname')