mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-03 01:33:32 +02:00
Persist information correctly
This commit is contained in:
parent
10b589a1ec
commit
4d8cb45345
5 changed files with 42 additions and 29 deletions
|
@ -511,7 +511,10 @@ class DotGovDomainForm(RegistrarForm):
|
|||
values = {}
|
||||
requested_domain = getattr(obj, "requested_domain", None)
|
||||
if requested_domain is not None:
|
||||
values["requested_domain"] = Domain.sld(requested_domain.name)
|
||||
is_incomplete = requested_domain.is_incomplete
|
||||
# Only display a preexisting name if the application was completed
|
||||
domain_name = requested_domain.name if not is_incomplete else ""
|
||||
values["requested_domain"] = Domain.sld(domain_name)
|
||||
return values
|
||||
|
||||
def clean_requested_domain(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue