mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
Fix unit test
This commit is contained in:
parent
773d6e0cee
commit
3189b50baa
2 changed files with 6 additions and 10 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue