aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/urls.py
diff options
context:
space:
mode:
authorMR Lemon <matt@matthewlemon>2020-04-17 16:03:51 +0100
committerMR Lemon <matt@matthewlemon>2020-04-17 16:03:51 +0100
commit51149b561a44e5ecfbca90dfb9989985ccf2c122 (patch)
treefd39a5d1768ed79a9b3a3419dc63edf2522e5e59 /ctrack/caf/urls.py
parenta4be1627b2705bba96d80204043876a3abec6a24 (diff)
Adding a form for creating ApplicableSystem objects
Diffstat (limited to 'ctrack/caf/urls.py')
-rw-r--r--ctrack/caf/urls.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctrack/caf/urls.py b/ctrack/caf/urls.py
index 943fede..72a1de5 100644
--- a/ctrack/caf/urls.py
+++ b/ctrack/caf/urls.py
@@ -1,7 +1,8 @@
from django.urls import path
from django.views.decorators.cache import cache_page
-from ctrack.caf.views import ListCAF, ListApplicableSystem, caf_detail_view, ApplicableSystemDetail
+from ctrack.caf.views import ListCAF, ListApplicableSystem, caf_detail_view, ApplicableSystemDetail, \
+ ApplicableSystemCreate
app_name = "caf"
@@ -9,5 +10,6 @@ urlpatterns = [
path("", view=ListCAF.as_view(), name="caf_list"),
path("applicablesystems", cache_page(60 * 60)(ListApplicableSystem.as_view()), name="es_list"),
path("applicablesystems/<int:pk>", ApplicableSystemDetail.as_view(), name="ass_detail"),
- path("<int:pk>", caf_detail_view, name="detail")
+ path("applicablesystem/", ApplicableSystemCreate.as_view(), name="create"),
+ path("<int:pk>", caf_detail_view, name="detail")
]