mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
fixed formatting for lint
This commit is contained in:
parent
888ddda9e9
commit
c52ccf8a9a
2 changed files with 5 additions and 7 deletions
|
@ -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."""
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue