diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py index 427d385..925ac77 100644 --- a/ctrack/organisations/views.py +++ b/ctrack/organisations/views.py @@ -1,12 +1,13 @@ from typing import Any from typing import Dict +from crispy_forms.layout import Submit from django.contrib.auth.mixins import LoginRequiredMixin from django.db import transaction from django.urls import reverse_lazy from django.views.generic import DetailView, ListView, CreateView -from .forms import OrganisationCreateForm, AddressInlineFormSet +from .forms import OrganisationCreateForm, AddressInlineFormSet, OrganisationInlineFormSetHelper from .models import Organisation @@ -21,6 +22,7 @@ class OrganisationCreate(CreateView): context["addresses"] = AddressInlineFormSet(self.request.POST) else: context["addresses"] = AddressInlineFormSet() + context["helper"] = OrganisationInlineFormSetHelper() return context def form_valid(self, form): |