diff options
author | MR Lemon <matt@matthewlemon> | 2020-05-05 15:53:26 +0100 |
---|---|---|
committer | MR Lemon <matt@matthewlemon> | 2020-05-05 15:53:26 +0100 |
commit | 9671f76654ed89f76334fbbfd0ec019ec07f5334 (patch) | |
tree | 103ebf9fe27179b97ec894b5d0245d4800ea49d6 /ctrack/organisations/views.py | |
parent | 6031ba0980c35b787552f3118368229a75b1e0b9 (diff) |
first iteration of a passable create orgnisation form with address!
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/views.py | 2 |
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 |