Fix unit test

This commit is contained in:
zandercymatics 2024-02-09 10:13:10 -07:00
parent 773d6e0cee
commit 3189b50baa
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 6 additions and 10 deletions

View file

@ -1177,10 +1177,9 @@ class DomainAdmin(ListHeaderAdmin):
# Renew the domain.
try:
obj.renew_domain(length=years)
updated_domain = Domain.objects.filter(id=obj.id).get()
self.message_user(
request,
f"Successfully extended expiration date to {updated_domain.registry_expiration_date}.",
f"Successfully extended expiration date.",
)
except RegistryError as err:
if err.is_connection_error():