mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
Change context order
This commit is contained in:
parent
7578534f59
commit
104f94da07
2 changed files with 3 additions and 3 deletions
|
@ -1750,9 +1750,10 @@ class DomainAdmin(ListHeaderAdmin):
|
||||||
if domain is not None and hasattr(domain, "domain_info"):
|
if domain is not None and hasattr(domain, "domain_info"):
|
||||||
extra_context["original_object"] = 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
|
# 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 = 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)
|
return super().changeform_view(request, object_id, form_url, extra_context)
|
||||||
|
|
||||||
|
|
|
@ -1779,8 +1779,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
self._update_hosts_and_contacts(cleaned, fetch_hosts, fetch_contacts)
|
self._update_hosts_and_contacts(cleaned, fetch_hosts, fetch_contacts)
|
||||||
|
|
||||||
if self.state == self.State.UNKNOWN:
|
if self.state == self.State.UNKNOWN:
|
||||||
# self._fix_unknown_state(cleaned)
|
self._fix_unknown_state(cleaned)
|
||||||
pass
|
|
||||||
if fetch_hosts:
|
if fetch_hosts:
|
||||||
self._update_hosts_and_ips_in_db(cleaned)
|
self._update_hosts_and_ips_in_db(cleaned)
|
||||||
if fetch_contacts:
|
if fetch_contacts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue