Change context order

This commit is contained in:
zandercymatics 2024-04-23 09:38:57 -06:00
parent 7578534f59
commit 104f94da07
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 3 additions and 3 deletions

View file

@ -1750,9 +1750,10 @@ class DomainAdmin(ListHeaderAdmin):
if domain is not None and hasattr(domain, "domain_info"):
extra_context["original_object"] = domain.domain_info
extra_context["state_help_message"] = Domain.State.get_admin_help_text(domain.state)
# Pass in what the an extended expiration date would be for the expiration date modal
extra_context = self._set_expiration_date_context(domain, extra_context)
extra_context["state_help_message"] = Domain.State.get_admin_help_text(domain.state)
return super().changeform_view(request, object_id, form_url, extra_context)

View file

@ -1779,8 +1779,7 @@ class Domain(TimeStampedModel, DomainHelper):
self._update_hosts_and_contacts(cleaned, fetch_hosts, fetch_contacts)
if self.state == self.State.UNKNOWN:
# self._fix_unknown_state(cleaned)
pass
self._fix_unknown_state(cleaned)
if fetch_hosts:
self._update_hosts_and_ips_in_db(cleaned)
if fetch_contacts: