Merge branch 'za/1852-user-contact-info-inline' into za/1848-copy-contact-email-to-clipboard

This commit is contained in:
zandercymatics 2024-03-21 13:49:07 -06:00
commit f001331820
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
9 changed files with 282 additions and 158 deletions

View file

@ -911,6 +911,7 @@ class DomainInformationAdmin(ListHeaderAdmin):
"no_other_contacts_rationale",
"anything_else",
"is_policy_acknowledged",
"other_contacts",
]
# For each filter_horizontal, init in admin js extendFilterHorizontalWidgets
@ -928,6 +929,8 @@ class DomainInformationAdmin(ListHeaderAdmin):
# Table ordering
ordering = ["domain__name"]
change_form_template = "django/admin/domain_information_change_form.html"
def get_readonly_fields(self, request, obj=None):
"""Set the read-only state on form elements.
We have 1 conditions that determine which fields are read-only: