Fix black formatting

This commit is contained in:
Neil Martinsen-Burrell 2022-10-19 10:03:15 -05:00
parent 5766a0bf9f
commit fc448351da
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
3 changed files with 14 additions and 9 deletions

View file

@ -9,23 +9,28 @@ from formtools.wizard.views import NamedUrlSessionWizardView
logger = logging.getLogger(__name__)
class RequirementsForm(forms.Form):
template_name = "application_requirements.html"
agree_box = forms.BooleanField()
class OrganizationForm(forms.Form):
template_name = "application_organization.html"
organization_type = forms.ChoiceField(widget=forms.RadioSelect)
# List of forms in our wizard. Each entry is a tuple of a name and a form
# subclass
FORMS = [("requirements",RequirementsForm), ("organization",OrganizationForm)]
FORMS = [("requirements", RequirementsForm), ("organization", OrganizationForm)]
# Dict to match up the right template with the right step. Keys here must
# match the first elements of the tuples above
TEMPLATES = {"requirements": "application_requirements.html",
"organization": "application_organization.html"
}
TEMPLATES = {
"requirements": "application_requirements.html",
"organization": "application_organization.html",
}
class ApplicationWizard(NamedUrlSessionWizardView):
form_list = FORMS