Unit test

This commit is contained in:
zandercymatics 2024-02-09 10:06:46 -07:00
parent b06babd6f0
commit 773d6e0cee
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 63 additions and 3 deletions

View file

@ -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.