From 9671f76654ed89f76334fbbfd0ec019ec07f5334 Mon Sep 17 00:00:00 2001 From: MR Lemon Date: Tue, 5 May 2020 15:53:26 +0100 Subject: first iteration of a passable create orgnisation form with address! --- ctrack/organisations/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctrack/organisations/views.py') diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py index 427d385..fe88728 100644 --- a/ctrack/organisations/views.py +++ b/ctrack/organisations/views.py @@ -10,7 +10,7 @@ from .forms import OrganisationCreateForm, AddressInlineFormSet from .models import Organisation -class OrganisationCreate(CreateView): +class OrganisationCreate(LoginRequiredMixin, CreateView): model = Organisation template_name = "organisations/org_create_formset.html" form_class = OrganisationCreateForm -- cgit v1.2.3