mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 10:59:21 +02:00
Remove your contact step from requests
This commit is contained in:
parent
9551b68b74
commit
b002b7ea2b
1 changed files with 9 additions and 1 deletions
|
@ -22,7 +22,7 @@ from .utility import (
|
||||||
DomainRequestWizardPermissionView,
|
DomainRequestWizardPermissionView,
|
||||||
)
|
)
|
||||||
|
|
||||||
from waffle.decorators import flag_is_active
|
from waffle.decorators import flag_is_active, waffle_flag
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -406,6 +406,10 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
condition = condition(self)
|
condition = condition(self)
|
||||||
if condition:
|
if condition:
|
||||||
step_list.append(step)
|
step_list.append(step)
|
||||||
|
|
||||||
|
if flag_is_active(self.request, "profile_feature"):
|
||||||
|
step_list.remove(Step.YOUR_CONTACT)
|
||||||
|
|
||||||
return step_list
|
return step_list
|
||||||
|
|
||||||
def goto(self, step):
|
def goto(self, step):
|
||||||
|
@ -540,6 +544,10 @@ class YourContact(DomainRequestWizard):
|
||||||
template_name = "domain_request_your_contact.html"
|
template_name = "domain_request_your_contact.html"
|
||||||
forms = [forms.YourContactForm]
|
forms = [forms.YourContactForm]
|
||||||
|
|
||||||
|
@waffle_flag("!profile_feature") # type: ignore
|
||||||
|
def dispatch(self, request, *args, **kwargs): # type: ignore
|
||||||
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class OtherContacts(DomainRequestWizard):
|
class OtherContacts(DomainRequestWizard):
|
||||||
template_name = "domain_request_other_contacts.html"
|
template_name = "domain_request_other_contacts.html"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue