Hide password

This commit is contained in:
zandercymatics 2024-04-23 10:56:30 -06:00
parent e5b3a6adb4
commit 8d43031d75
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 6 additions and 6 deletions

View file

@ -561,7 +561,7 @@ class MyUserAdmin(BaseUserAdmin):
analyst_fieldsets = (
(
None,
{"fields": ("password", "status")},
{"fields": ("status")},
),
("Personal Info", {"fields": ("first_name", "last_name", "email")}),
(
@ -587,7 +587,6 @@ class MyUserAdmin(BaseUserAdmin):
# NOT all fields are readonly for admin, otherwise we would have
# set this at the permissions level. The exception is 'status'
analyst_readonly_fields = [
"password",
"Personal Info",
"first_name",
"last_name",