mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
Unit test
This commit is contained in:
parent
b06babd6f0
commit
773d6e0cee
2 changed files with 63 additions and 3 deletions
|
@ -1171,7 +1171,7 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
# If both years match, then lets just proceed as normal.
|
||||
years = 1
|
||||
if desired_date > exp_date:
|
||||
year_difference = relativedelta(desired_date.year, exp_date.year).years
|
||||
year_difference = desired_date.year - exp_date.year
|
||||
years = year_difference
|
||||
|
||||
# Renew the domain.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue