Update admin.py

This commit is contained in:
zandercymatics 2024-02-07 16:10:45 -07:00
parent 8700a05fbf
commit 83269447ae
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

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