mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-30 01:10:04 +02:00
Review feedback: unit tests, accessibility, etc.
This commit is contained in:
parent
921790072d
commit
2f463b810b
9 changed files with 185 additions and 84 deletions
|
@ -4,6 +4,8 @@ import logging
|
|||
|
||||
from django import forms
|
||||
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
|
||||
from formtools.wizard.views import NamedUrlSessionWizardView # type: ignore
|
||||
|
||||
|
||||
|
@ -64,7 +66,16 @@ TEMPLATES = {
|
|||
}
|
||||
|
||||
|
||||
class ApplicationWizard(NamedUrlSessionWizardView):
|
||||
class ApplicationWizard(LoginRequiredMixin, NamedUrlSessionWizardView):
|
||||
|
||||
"""Multi-page form ("wizard") for new domain applications.
|
||||
|
||||
This sets up a sequence of forms that gather information for new
|
||||
domain applications. Each form in the sequence has its own URL and
|
||||
the progress through the form is stored in the Django session (thus
|
||||
"NamedUrlSessionWizardView").
|
||||
"""
|
||||
|
||||
form_list = FORMS
|
||||
|
||||
def get_template_names(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue