mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 01:27:03 +02:00
Update admin.py
This commit is contained in:
parent
8700a05fbf
commit
83269447ae
1 changed files with 1 additions and 1 deletions
|
@ -1176,7 +1176,7 @@ class DomainAdmin(ListHeaderAdmin):
|
||||||
#obj.renew_domain(length=month_length, unit=epp.Unit.MONTH)
|
#obj.renew_domain(length=month_length, unit=epp.Unit.MONTH)
|
||||||
years = int(month_length/12)
|
years = int(month_length/12)
|
||||||
if years >= 1:
|
if years >= 1:
|
||||||
obj.renew_domain(length=month_length/12)
|
obj.renew_domain(length=years)
|
||||||
else:
|
else:
|
||||||
self.message_user(
|
self.message_user(
|
||||||
request,
|
request,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue