aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/views.py
diff options
context:
space:
mode:
authorMR Lemon <matt@matthewlemon>2020-05-01 16:28:08 +0100
committerMR Lemon <matt@matthewlemon>2020-05-01 16:56:30 +0100
commitdbe4555b17e2dd0d49b8c4879252692f75f8fe42 (patch)
treee9e308d6f49d5419096996674a36906f81da9a51 /ctrack/organisations/views.py
parentefde7c98c202405c4bbbd9d8832f3f92fc402468 (diff)
squashed a lot of wizard form code
Diffstat (limited to 'ctrack/organisations/views.py')
-rw-r--r--ctrack/organisations/views.py18
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