Code simplification

This commit is contained in:
zandercymatics 2024-03-21 12:42:21 -06:00
parent 7e8f07439e
commit ed36fc6e3b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
7 changed files with 120 additions and 115 deletions

View file

@ -913,6 +913,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: