Rename view classes to have more descriptive names
This commit is contained in:
@ -9,17 +9,19 @@ from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', RedirectView.as_view(url=reverse_lazy('map')), name='index'),
|
||||
url(r'^case-study/create/?$', views.Create.as_view(), name="create"),
|
||||
url(r'^case-study/create/short/?$', views.ShortForm.as_view(), name='short-form'),
|
||||
url(r'^case-study/create/long/?$', views.LongForm.as_view(), name='long-form'),
|
||||
url(r'^case-study/create/poi/?$', views.PointOfInterest.as_view(), name='point-of-interest-form'),
|
||||
url(r'^case-study/create/success/?$', views.FormSuccess.as_view(), name='form-success'),
|
||||
url(r'^case-study/draft/?$', views.Drafts.as_view(), name='drafts'),
|
||||
url(r'^case-study/(?P<slug>[-\w]+)/?$', views.CaseStudyDetail.as_view(), name='detail'),
|
||||
url(r'^case-study/create/?$', views.CreateCaseStudySelector.as_view(), name="create"),
|
||||
url(r'^case-study/create/short/?$', views.CreateShortCaseStudy.as_view(), name='short-form'),
|
||||
url(r'^case-study/create/long/?$', views.CreateLongCaseStudy.as_view(), name='long-form'),
|
||||
url(r'^case-study/create/poi/?$', views.CreatePointOfInterest.as_view(), name='point-of-interest-form'),
|
||||
url(r'^case-study/create/success/?$', views.CreateCaseStudySuccess.as_view(), name='form-success'),
|
||||
url(r'^case-study/edit/(?P<pk>[\d]+)/?$', views.EditCaseStudy.as_view(), name='edit'),
|
||||
|
||||
# View case studies
|
||||
url(r'^case-study/(?P<slug>[-\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'),
|
||||
]
|
||||
|
Reference in New Issue
Block a user