This commit is contained in:
zandercymatics 2024-02-07 10:54:22 -07:00
parent f53df4f150
commit c9957bcd2c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 3 additions and 3 deletions

View file

@ -1136,7 +1136,7 @@ class DomainAdmin(ListHeaderAdmin):
"_get_status": self.do_get_status, "_get_status": self.do_get_status,
"_extend_expiration_date": self.do_extend_expiration_date, "_extend_expiration_date": self.do_extend_expiration_date,
} }
print(f"this is the response! {request.POST}")
# Check which action button was pressed and call the corresponding function # Check which action button was pressed and call the corresponding function
for action, function in ACTION_FUNCTIONS.items(): for action, function in ACTION_FUNCTIONS.items():
if action in request.POST: if action in request.POST:

View file

@ -246,7 +246,7 @@ class Domain(TimeStampedModel, DomainHelper):
Default length and unit of time are 1 year. Default length and unit of time are 1 year.
""" """
logger.info(f"This is the date to extend: {date_to_extend}")
# If no date is specified, grab the registry_expiration_date # If no date is specified, grab the registry_expiration_date
if date_to_extend is None: if date_to_extend is None:
try: try:
@ -255,7 +255,7 @@ class Domain(TimeStampedModel, DomainHelper):
# if no expiration date from registry, set it to today # if no expiration date from registry, set it to today
logger.warning("current expiration date not set; setting to today") logger.warning("current expiration date not set; setting to today")
date_to_extend = date.today() date_to_extend = date.today()
logger.info(f"This is the date to extend: {date_to_extend} vs registry {self.registry_expiration_date}")
# create RenewDomain request # create RenewDomain request
request = commands.RenewDomain(name=self.name, cur_exp_date=date_to_extend, period=epp.Period(length, unit)) request = commands.RenewDomain(name=self.name, cur_exp_date=date_to_extend, period=epp.Period(length, unit))