aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/views.py
diff options
context:
space:
mode:
authorMR Lemon <matt@matthewlemon>2020-05-05 15:53:26 +0100
committerMR Lemon <matt@matthewlemon>2020-05-05 15:53:26 +0100
commit9671f76654ed89f76334fbbfd0ec019ec07f5334 (patch)
tree103ebf9fe27179b97ec894b5d0245d4800ea49d6 /ctrack/organisations/views.py
parent6031ba0980c35b787552f3118368229a75b1e0b9 (diff)
first iteration of a passable create orgnisation form with address!
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/views.py2
1 files changed, 1 insertions, 1 deletions
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