mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-11 03:59:41 +02:00
* Update to unlock with prior step for non-org request * Update org model unlocking for current sites * Update non-org unlocking
This commit is contained in:
parent
952b2b652a
commit
7a205e491b
2 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ class DomainRequestWizard(TemplateView):
|
|||
Step.ABOUT_YOUR_ORGANIZATION: lambda self: self.domain_request.about_your_organization is not None,
|
||||
Step.SENIOR_OFFICIAL: lambda self: self.domain_request.senior_official is not None,
|
||||
Step.CURRENT_SITES: lambda self: (
|
||||
self.domain_request.current_websites.exists() or self.domain_request.requested_domain is not None
|
||||
self.domain_request.current_websites.exists() or self.domain_request.senior_official is not None
|
||||
),
|
||||
Step.DOTGOV_DOMAIN: lambda self: self.domain_request.requested_domain is not None,
|
||||
Step.PURPOSE: lambda self: self.domain_request.purpose is not None,
|
||||
|
@ -135,7 +135,7 @@ class DomainRequestWizard(TemplateView):
|
|||
PORTFOLIO_UNLOCKING_STEPS = {
|
||||
PortfolioDomainRequestStep.REQUESTING_ENTITY: lambda w: w.from_model("unlock_requesting_entity", False),
|
||||
PortfolioDomainRequestStep.CURRENT_SITES: lambda self: (
|
||||
self.domain_request.current_websites.exists() or self.domain_request.requested_domain is not None
|
||||
self.domain_request.current_websites.exists() or self.from_model("unlock_requesting_entity", False)
|
||||
),
|
||||
PortfolioDomainRequestStep.DOTGOV_DOMAIN: lambda self: self.domain_request.requested_domain is not None,
|
||||
PortfolioDomainRequestStep.PURPOSE: lambda self: self.domain_request.purpose is not None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue