made email readonly and fixed some unit tests

This commit is contained in:
David Kennedy 2024-07-09 16:48:03 -04:00
parent be43bbc8b7
commit a7abfa9cdb
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
4 changed files with 5 additions and 4 deletions

View file

@ -917,7 +917,7 @@ class ContactAdmin(ListHeaderAdmin, ImportExportModelAdmin):
name.admin_order_field = "first_name" # type: ignore
# Read only that we'll leverage for CISA Analysts
analyst_readonly_fields: list[str] = []
analyst_readonly_fields: list[str] = ["email"]
def get_readonly_fields(self, request, obj=None):
"""Set the read-only state on form elements.