This commit is contained in:
zandercymatics 2024-02-12 12:44:15 -07:00
parent 5e0a1a6269
commit 5de2df1872
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -1077,6 +1077,7 @@ class DomainAdmin(ListHeaderAdmin):
ordering = ["name"] ordering = ["name"]
def changeform_view(self, request, object_id=None, form_url="", extra_context=None): def changeform_view(self, request, object_id=None, form_url="", extra_context=None):
"""Custom changeform implementation to pass in context information"""
if extra_context is None: if extra_context is None:
extra_context = {} extra_context = {}
@ -1198,7 +1199,7 @@ class DomainAdmin(ListHeaderAdmin):
def _get_calculated_years_for_exp_date(self, obj, extension_period: int = 1): def _get_calculated_years_for_exp_date(self, obj, extension_period: int = 1):
"""Given the current date, an extension period, and a registry_expiration_date """Given the current date, an extension period, and a registry_expiration_date
on the domain object, calculate the number of years needed to extend the on the domain object, calculate the number of years needed to extend the
current expiration date by the extension period. current expiration date by the extension period.
""" """
# Get the date we want to update to # Get the date we want to update to