1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
from django.urls import path
from ctrack.organisations.views import (
IncidentReportCreateView,
OrganisationCreate,
OrganisationDetailView,
OrganisationListView,
PersonListView,
essential_service_detail,
person_detail, OrganisationListViewByLeadInspector,
)
app_name = "organisations"
urlpatterns = [
path("people/", view=PersonListView.as_view(), name="people"),
path("<slug:slug>/", view=OrganisationDetailView.as_view(), name="detail"),
path(
"<slug:slug>/create-incident-report/",
view=IncidentReportCreateView.as_view(),
name="create_incident_report",
),
path("", view=OrganisationListView.as_view(), name="list"),
path("lead-inspector/<int:id>", view=OrganisationListViewByLeadInspector.as_view(), name="list_by_inspector"),
path("create", view=OrganisationCreate.as_view(), name="create"),
path(
"essentialservice/<int:pk>",
essential_service_detail,
name="essential_service_detail",
),
path("person/<int:person_id>", person_detail, name="person-detail"),
# path("create", view=OrganisationCreate.as_view(), name="create")
]
|