diff options
Diffstat (limited to 'ctrack/organisations/views.py')
-rw-r--r-- | ctrack/organisations/views.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py index b929de4..3363a33 100644 --- a/ctrack/organisations/views.py +++ b/ctrack/organisations/views.py @@ -10,7 +10,7 @@ from django.urls import reverse_lazy from django.views.generic import CreateView, DetailView, ListView from .forms import AddressInlineFormSet, OrganisationCreateForm -from .models import Organisation +from .models import IncidentReport, Organisation class OrganisationCreate(LoginRequiredMixin, CreateView): @@ -71,3 +71,8 @@ class OrganisationDetailView(LoginRequiredMixin, DetailView): applicable_systems = org.applicablesystem_set.all() context["applicable_systems"] = applicable_systems return context + + +class IncidentReportCreateView(LoginRequiredMixin, CreateView): + model = IncidentReport + fields = "__all__" |