diff --git a/src/registrar/admin.py b/src/registrar/admin.py index 1c7ff4c87..7605e0a07 100644 --- a/src/registrar/admin.py +++ b/src/registrar/admin.py @@ -1750,10 +1750,12 @@ class DomainAdmin(ListHeaderAdmin): if domain is not None and hasattr(domain, "domain_info"): extra_context["original_object"] = domain.domain_info + logger.info(f"changeform_view() -> state is {domain.state}") extra_context["state_help_message"] = Domain.State.get_admin_help_text(domain.state) - + logger.info(f"changeform_view() -> state is now {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) + self._set_expiration_date_context(domain, extra_context) + logger.info(f"changeform_view() -> state is now actually {domain.state}") return super().changeform_view(request, object_id, form_url, extra_context) @@ -1770,8 +1772,6 @@ class DomainAdmin(ListHeaderAdmin): new_date = curr_exp_date + relativedelta(years=years_to_extend_by) extra_context["extended_expiration_date"] = new_date - return extra_context - def response_change(self, request, obj): # Create dictionary of action functions ACTION_FUNCTIONS = {