from django.urls import path from django.views.decorators.cache import cache_page from ctrack.caf.views import ( ApplicableSystemCreateFromOrg, ApplicableSystemDetail, ListApplicableSystem, ListCAF, applicable_system_create_from_caf, caf_detail_view, ) app_name = "caf" urlpatterns = [ path("", view=ListCAF.as_view(), name="caf_list"), path( "applicablesystems", cache_page(60 * 60)(ListApplicableSystem.as_view()), name="es_list", ), path( "applicablesystems/", ApplicableSystemDetail.as_view(), name="ass_detail", ), path( "applicablesystem/", ApplicableSystemCreateFromOrg.as_view(), name="as_create_from_org", ), path( "applicablesystem/create-from-caf/", applicable_system_create_from_caf, name="as_create_from_caf", ), path("", caf_detail_view, name="detail"), ]