diff --git a/src/registrar/admin.py b/src/registrar/admin.py index ed5f143bb..de89e0150 100644 --- a/src/registrar/admin.py +++ b/src/registrar/admin.py @@ -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: diff --git a/src/registrar/models/domain.py b/src/registrar/models/domain.py index 577786dd0..db17a29b4 100644 --- a/src/registrar/models/domain.py +++ b/src/registrar/models/domain.py @@ -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))