Basic button

This commit is contained in:
zandercymatics 2024-02-02 15:39:51 -07:00
parent 2891391382
commit b3401d8bfc
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 3 additions and 1 deletions

View file

@ -1134,7 +1134,7 @@ class DomainAdmin(ListHeaderAdmin):
"_edit_domain": self.do_edit_domain,
"_delete_domain": self.do_delete_domain,
"_get_status": self.do_get_status,
"_extend_expiration_date": self.do_extend_expiration_date
"_extend_expiration_date": self.do_extend_expiration_date,
}
# Check which action button was pressed and call the corresponding function
@ -1152,6 +1152,7 @@ class DomainAdmin(ListHeaderAdmin):
# We do not want to accidentally delete records.
self.message_user(request, "Object is not of type Domain", messages.ERROR)
return None
try:
obj.renew_domain(date_to_extend=date.today())
except Exception as err: