fixed formatting for lint

This commit is contained in:
David Kennedy 2023-09-01 17:48:30 -04:00
parent 888ddda9e9
commit c52ccf8a9a
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 5 additions and 7 deletions

View file

@ -164,6 +164,7 @@ class MyHostAdmin(AuditedAdmin):
inlines = [HostIPInline]
class DomainAdmin(ListHeaderAdmin):
"""Custom domain admin class to add extra buttons."""
@ -218,6 +219,7 @@ class DomainAdmin(ListHeaderAdmin):
return True
return super().has_change_permission(request, obj)
class ContactAdmin(ListHeaderAdmin):
"""Custom contact admin class to add search."""

View file

@ -317,17 +317,13 @@ class Domain(TimeStampedModel, DomainHelper):
"""Time to renew. Not implemented."""
raise NotImplementedError()
@transition(
field="state", source=[State.READY], target=State.ONHOLD
)
@transition(field="state", source=[State.READY], target=State.ONHOLD)
def place_client_hold(self):
"""This domain should not be active."""
# This method is changing the state of the domain in registrar
# TODO: implement EPP call
@transition(
field="state", source=[State.ONHOLD], target=State.READY
)
@transition(field="state", source=[State.ONHOLD], target=State.READY)
def remove_client_hold(self):
"""This domain is okay to be active."""
# This method is changing the state of the domain in registrar