aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/urls.py
blob: 95967c6580ed4868eab0959eaa9da8cc7b049c8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from django.urls import path

from ctrack.organisations.views import (
    IncidentReportCreateView,
    OrganisationCreate,
    OrganisationDetailView,
    OrganisationListView,
    PersonListView,
)

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("create", view=OrganisationCreate.as_view(), name="create"),
    # path("create", view=OrganisationCreate.as_view(), name="create")
]