mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
Update admin.py
This commit is contained in:
parent
f46988ef67
commit
6c909dcc64
1 changed files with 5 additions and 1 deletions
|
@ -1163,7 +1163,11 @@ class DomainAdmin(ListHeaderAdmin):
|
||||||
|
|
||||||
desired_date = date.today() + relativedelta(years=1)
|
desired_date = date.today() + relativedelta(years=1)
|
||||||
logger.info(f"do_extend_expiration_date -> exp {exp_date} des {desired_date}")
|
logger.info(f"do_extend_expiration_date -> exp {exp_date} des {desired_date}")
|
||||||
month_length = self._month_diff(exp_date, desired_date)
|
|
||||||
|
# Get the difference in months between the expiration date, and the
|
||||||
|
# desired date (today + 1). Then, add one year to that.
|
||||||
|
one_year = 12
|
||||||
|
month_length = self._month_diff(exp_date, desired_date) + one_year
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.info(f"do_extend_expiration_date -> month length: {month_length}")
|
logger.info(f"do_extend_expiration_date -> month length: {month_length}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue