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]
|
inlines = [HostIPInline]
|
||||||
|
|
||||||
|
|
||||||
class DomainAdmin(ListHeaderAdmin):
|
class DomainAdmin(ListHeaderAdmin):
|
||||||
|
|
||||||
"""Custom domain admin class to add extra buttons."""
|
"""Custom domain admin class to add extra buttons."""
|
||||||
|
@ -218,6 +219,7 @@ class DomainAdmin(ListHeaderAdmin):
|
||||||
return True
|
return True
|
||||||
return super().has_change_permission(request, obj)
|
return super().has_change_permission(request, obj)
|
||||||
|
|
||||||
|
|
||||||
class ContactAdmin(ListHeaderAdmin):
|
class ContactAdmin(ListHeaderAdmin):
|
||||||
"""Custom contact admin class to add search."""
|
"""Custom contact admin class to add search."""
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
READY = "ready"
|
READY = "ready"
|
||||||
|
|
||||||
# when a domain is on hold
|
# when a domain is on hold
|
||||||
ONHOLD="onhold"
|
ONHOLD = "onhold"
|
||||||
|
|
||||||
class Cache(property):
|
class Cache(property):
|
||||||
"""
|
"""
|
||||||
|
@ -317,17 +317,13 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
"""Time to renew. Not implemented."""
|
"""Time to renew. Not implemented."""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
@transition(
|
@transition(field="state", source=[State.READY], target=State.ONHOLD)
|
||||||
field="state", source=[State.READY], target=State.ONHOLD
|
|
||||||
)
|
|
||||||
def place_client_hold(self):
|
def place_client_hold(self):
|
||||||
"""This domain should not be active."""
|
"""This domain should not be active."""
|
||||||
# This method is changing the state of the domain in registrar
|
# This method is changing the state of the domain in registrar
|
||||||
# TODO: implement EPP call
|
# TODO: implement EPP call
|
||||||
|
|
||||||
@transition(
|
@transition(field="state", source=[State.ONHOLD], target=State.READY)
|
||||||
field="state", source=[State.ONHOLD], target=State.READY
|
|
||||||
)
|
|
||||||
def remove_client_hold(self):
|
def remove_client_hold(self):
|
||||||
"""This domain is okay to be active."""
|
"""This domain is okay to be active."""
|
||||||
# This method is changing the state of the domain in registrar
|
# This method is changing the state of the domain in registrar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue