Basic logic

This commit is contained in:
zandercymatics 2024-04-18 15:30:45 -06:00
parent c565655aa8
commit 5cba82b343
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 83 additions and 26 deletions

View file

@ -490,7 +490,7 @@ class MyUserAdmin(BaseUserAdmin):
fieldsets = (
(
None,
{"fields": ("username", "password", "status")},
{"fields": ("username", "password", "status", "verification_type")},
),
("Personal Info", {"fields": ("first_name", "last_name", "email")}),
(
@ -508,6 +508,8 @@ class MyUserAdmin(BaseUserAdmin):
("Important dates", {"fields": ("last_login", "date_joined")}),
)
readonly_fields = ("verification_type")
# Hide Username (uuid), Groups and Permissions
# Q: Now that we're using Groups and Permissions,
# do we expose those to analysts to view?