This commit is contained in:
zandercymatics 2024-03-19 11:15:05 -06:00
parent 8f8402ffc5
commit 2ad571354e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 126 additions and 0 deletions

View file

@ -1099,6 +1099,8 @@ class DomainRequestAdmin(ListHeaderAdmin):
"about_your_organization",
"requested_domain",
"approved_domain",
"other_contacts",
"current_websites",
"alternative_domains",
"purpose",
"submitter",
@ -1119,6 +1121,8 @@ class DomainRequestAdmin(ListHeaderAdmin):
# Table ordering
ordering = ["requested_domain__name"]
change_form_template = "django/admin/domain_request_change_form.html"
# Trigger action when a fieldset is changed
def save_model(self, request, obj, form, change):
"""Custom save_model definition that handles edge cases"""