Add loggers

This commit is contained in:
zandercymatics 2024-04-23 10:41:00 -06:00
parent cc294c4e7d
commit e5b3a6adb4
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -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 = {