diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/views.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py index e90a588..74b290e 100644 --- a/ctrack/organisations/views.py +++ b/ctrack/organisations/views.py @@ -2,30 +2,12 @@ from typing import Any from typing import Dict from django.contrib.auth.mixins import LoginRequiredMixin -from django.http import HttpResponseRedirect -from django.urls import reverse from django.views.generic import DetailView, ListView, CreateView -from formtools.wizard.views import SessionWizardView from .forms import OrganisationCreateForm from .models import Organisation -def save_organisation_to_database(form_list): - """ - When we have a multi-part wizard form data back, we save it to the database here! - """ - pass - - -class OrganisationCreateWizard(LoginRequiredMixin, SessionWizardView): - template_name = "organisations/org_create_wizard_form.html" - - def done(self, form_list, **kwargs): - save_organisation_to_database(form_list) - return HttpResponseRedirect(reverse("organisations:list")) - - class OrganisationCreate(LoginRequiredMixin, CreateView): form_class = OrganisationCreateForm model = Organisation |