aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ctrack/caf/urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctrack/caf/urls.py b/ctrack/caf/urls.py
index 3016013..dc228ae 100644
--- a/ctrack/caf/urls.py
+++ b/ctrack/caf/urls.py
@@ -1,4 +1,5 @@
from django.urls import path
+from django.views.decorators.cache import cache_page
from ctrack.caf.views import CreateCAF, ListCAF, ListApplicableSystem, DetailCAF
@@ -7,6 +8,6 @@ app_name = "caf"
urlpatterns = [
path("", view=CreateCAF.as_view(), name="create"),
path("", view=ListCAF.as_view(), name="caf_list"),
- path("applicablesystems", view=ListApplicableSystem.as_view(), name="es_list"),
+ path("applicablesystems", cache_page(60 * 60)(ListApplicableSystem.as_view()), name="es_list"),
path("<int:pk>", DetailCAF.as_view(), name="detail")
]