mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
Hotfix
This commit is contained in:
parent
f53df4f150
commit
c9957bcd2c
2 changed files with 3 additions and 3 deletions
|
@ -1136,7 +1136,7 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
"_get_status": self.do_get_status,
|
||||
"_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
|
||||
for action, function in ACTION_FUNCTIONS.items():
|
||||
if action in request.POST:
|
||||
|
|
|
@ -246,7 +246,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
|
||||
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 date_to_extend is None:
|
||||
try:
|
||||
|
@ -255,7 +255,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
# if no expiration date from registry, set it to today
|
||||
logger.warning("current expiration date not set; setting to 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
|
||||
request = commands.RenewDomain(name=self.name, cur_exp_date=date_to_extend, period=epp.Period(length, unit))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue