From 2c71afebc223898e4af913dcb3068651ee10580b Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Wed, 10 Jul 2019 11:27:29 -0500 Subject: [PATCH] mark readonly user signup fields --- ttadmin/users/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ttadmin/users/admin.py b/ttadmin/users/admin.py index bcdeace..5d2db04 100644 --- a/ttadmin/users/admin.py +++ b/ttadmin/users/admin.py @@ -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')