updated modal to include current expiration date

This commit is contained in:
David Kennedy 2024-06-26 17:32:47 -04:00
parent a7379f5d86
commit b92c3cb7b8
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 6 additions and 0 deletions

View file

@ -2194,6 +2194,9 @@ class DomainAdmin(ListHeaderAdmin, ImportExportModelAdmin):
extra_context["state_help_message"] = Domain.State.get_admin_help_text(domain.state)
extra_context["domain_state"] = domain.get_state_display()
extra_context["curr_exp_date"] = (
domain.expiration_date if domain.expiration_date is not None else self._get_current_date()
)
return super().changeform_view(request, object_id, form_url, extra_context)