mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
Add loggers
This commit is contained in:
parent
cc294c4e7d
commit
e5b3a6adb4
1 changed files with 4 additions and 4 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue