diff --git a/apps/map/urls.py b/apps/map/urls.py index 14f976f..c66356c 100644 --- a/apps/map/urls.py +++ b/apps/map/urls.py @@ -16,12 +16,15 @@ urlpatterns = [ url(r'^case-study/create/success/?$', views.CreateCaseStudySuccess.as_view(), name='form-success'), url(r'^case-study/edit/(?P[\d]+)/?$', views.EditCaseStudy.as_view(), name='edit'), + # Case study drafts + url(r'^case-study/draft/?$', views.DraftsAPI.as_view(), name='drafts'), + # View case studies + # This should be last so that the above options will be tried first! url(r'^case-study/(?P[-\w]+)/?$', views.ViewCaseStudyDetail.as_view(), name='detail'), url(r'^map/?$', views.Map.as_view(), name='map'), # API - url(r'^case-study/draft/?$', views.DraftsAPI.as_view(), name='drafts'), url(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalogue'), url(r'^srs-autocomplete/$', views.SpatialRefSysAutocomplete.as_view(), name='srs-autocomplete'), ]