Display federal and election questions conditionally

This commit is contained in:
Neil Martinsen-Burrell 2022-11-23 13:25:11 -06:00
parent e746cb2adc
commit 3fe00d1980
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
4 changed files with 125 additions and 50 deletions

View file

@ -10,12 +10,14 @@ from django.urls import include, path
from django.views.generic import RedirectView
from registrar.views import health, index, profile, whoami
from registrar.forms import ApplicationWizard
from registrar.forms import ApplicationWizard, WIZARD_CONDITIONS
from api.views import available
APPLICATION_URL_NAME = "application_step"
application_wizard = ApplicationWizard.as_view(
url_name=APPLICATION_URL_NAME, done_step_name="finished"
url_name=APPLICATION_URL_NAME,
done_step_name="finished",
condition_dict=WIZARD_CONDITIONS,
)
urlpatterns = [