mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 13:06:30 +02:00
Adding in the pendingDelete force state which will be removed
This commit is contained in:
parent
848a1a2e57
commit
5d53f5b9b2
1 changed files with 14 additions and 14 deletions
|
@ -2057,19 +2057,6 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
This is for force setting the pendingDelete statue (see statuses).I will remove this
|
This is for force setting the pendingDelete statue (see statuses).I will remove this
|
||||||
return when I merge as this is for testing purposes only. """ # noqa: W291
|
return when I merge as this is for testing purposes only. """ # noqa: W291
|
||||||
|
|
||||||
# return {
|
|
||||||
# "auth_info": getattr(data, "auth_info", ...),
|
|
||||||
# "_contacts": getattr(data, "contacts", ...),
|
|
||||||
# "cr_date": getattr(data, "cr_date", ...),
|
|
||||||
# "ex_date": getattr(data, "ex_date", ...),
|
|
||||||
# "_hosts": getattr(data, "hosts", ...),
|
|
||||||
# "name": getattr(data, "name", ...),
|
|
||||||
# "registrant": getattr(data, "registrant", ...),
|
|
||||||
# "statuses": [epp.Status(state="pendingDelete", description="", lang="en")],
|
|
||||||
# "tr_date": getattr(data, "tr_date", ...),
|
|
||||||
# "up_date": getattr(data, "up_date", ...),
|
|
||||||
# }
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"auth_info": getattr(data, "auth_info", ...),
|
"auth_info": getattr(data, "auth_info", ...),
|
||||||
"_contacts": getattr(data, "contacts", ...),
|
"_contacts": getattr(data, "contacts", ...),
|
||||||
|
@ -2078,11 +2065,24 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
"_hosts": getattr(data, "hosts", ...),
|
"_hosts": getattr(data, "hosts", ...),
|
||||||
"name": getattr(data, "name", ...),
|
"name": getattr(data, "name", ...),
|
||||||
"registrant": getattr(data, "registrant", ...),
|
"registrant": getattr(data, "registrant", ...),
|
||||||
"statuses": getattr(data, "statuses", ...),
|
"statuses": [epp.Status(state="pendingDelete", description="", lang="en")],
|
||||||
"tr_date": getattr(data, "tr_date", ...),
|
"tr_date": getattr(data, "tr_date", ...),
|
||||||
"up_date": getattr(data, "up_date", ...),
|
"up_date": getattr(data, "up_date", ...),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# return {
|
||||||
|
# "auth_info": getattr(data, "auth_info", ...),
|
||||||
|
# "_contacts": getattr(data, "contacts", ...),
|
||||||
|
# "cr_date": getattr(data, "cr_date", ...),
|
||||||
|
# "ex_date": getattr(data, "ex_date", ...),
|
||||||
|
# "_hosts": getattr(data, "hosts", ...),
|
||||||
|
# "name": getattr(data, "name", ...),
|
||||||
|
# "registrant": getattr(data, "registrant", ...),
|
||||||
|
# "statuses": getattr(data, "statuses", ...),
|
||||||
|
# "tr_date": getattr(data, "tr_date", ...),
|
||||||
|
# "up_date": getattr(data, "up_date", ...),
|
||||||
|
# }
|
||||||
|
|
||||||
def _clean_cache(self, cache, data_response):
|
def _clean_cache(self, cache, data_response):
|
||||||
"""clean up the cache"""
|
"""clean up the cache"""
|
||||||
# remove null properties (to distinguish between "a value of None" and null)
|
# remove null properties (to distinguish between "a value of None" and null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue