diff options
author | Stephen Finucane <stephen@that.guru> | 2016-11-03 15:38:39 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-04-04 15:11:34 +0100 |
commit | b5f65f848b5e91dab3b12d99c4d37d766756f3e9 (patch) | |
tree | 26ebf498a092b171286c893be46f9832a667ef95 /patchwork/urls.py | |
parent | 3631d22a766b842626ed9416da27613966cdf0e6 (diff) | |
download | patchwork-b5f65f848b5e91dab3b12d99c4d37d766756f3e9.tar patchwork-b5f65f848b5e91dab3b12d99c4d37d766756f3e9.tar.gz |
views: Use consistent 'list'/'detail' names
The 'setbundles' view is also removed as it's not called by
anything/anyone.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'patchwork/urls.py')
-rw-r--r-- | patchwork/urls.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/patchwork/urls.py b/patchwork/urls.py index 57d5cd7..34e6e60 100644 --- a/patchwork/urls.py +++ b/patchwork/urls.py @@ -41,24 +41,24 @@ admin.autodiscover() urlpatterns = [ url(r'^admin/', include(admin.site.urls)), - url(r'^$', project_views.projects, name='project-list'), - url(r'^project/(?P<project_id>[^/]+)/list/$', patch_views.patches, + url(r'^$', project_views.project_list, name='project-list'), + url(r'^project/(?P<project_id>[^/]+)/list/$', patch_views.patch_list, name='patch-list'), - url(r'^project/(?P<project_id>[^/]+)/bundles/$', bundle_views.bundles, + url(r'^project/(?P<project_id>[^/]+)/bundles/$', bundle_views.bundle_list, name='bundle-list'), - url(r'^project/(?P<project_id>[^/]+)/$', project_views.project, + url(r'^project/(?P<project_id>[^/]+)/$', project_views.project_detail, name='project-detail'), # patch views - url(r'^patch/(?P<patch_id>\d+)/$', patch_views.patch, + url(r'^patch/(?P<patch_id>\d+)/$', patch_views.patch_detail, name='patch-detail'), - url(r'^patch/(?P<patch_id>\d+)/raw/$', patch_views.content, + url(r'^patch/(?P<patch_id>\d+)/raw/$', patch_views.patch_raw, name='patch-raw'), - url(r'^patch/(?P<patch_id>\d+)/mbox/$', patch_views.mbox, + url(r'^patch/(?P<patch_id>\d+)/mbox/$', patch_views.patch_mbox, name='patch-mbox'), # cover views - url(r'^cover/(?P<cover_id>\d+)/$', cover_views.cover, + url(r'^cover/(?P<cover_id>\d+)/$', cover_views.cover_detail, name='cover-detail'), # comment urls @@ -71,7 +71,7 @@ urlpatterns = [ name='user-todos'), url(r'^user/todo/(?P<project_id>[^/]+)/$', user_views.todo_list, name='user-todo'), - url(r'^user/bundles/$', bundle_views.bundles, + url(r'^user/bundles/$', bundle_views.bundle_list, name='user-bundles'), url(r'^user/link/$', user_views.link, @@ -109,10 +109,10 @@ urlpatterns = [ # public view for bundles url(r'^bundle/(?P<username>[^/]*)/(?P<bundlename>[^/]*)/$', - bundle_views.bundle, + bundle_views.bundle_detail, name='bundle-detail'), url(r'^bundle/(?P<username>[^/]*)/(?P<bundlename>[^/]*)/mbox/$', - bundle_views.mbox, + bundle_views.bundle_mbox, name='bundle-mbox'), url(r'^confirm/(?P<key>[0-9a-f]+)/$', notification_views.confirm, @@ -235,9 +235,9 @@ if settings.ENABLE_REST_API: if settings.COMPAT_REDIR: urlpatterns += [ url(r'^user/bundle/(?P<bundle_id>[^/]+)/$', - bundle_views.bundle_redir, + bundle_views.bundle_detail_redir, name='bundle-redir'), url(r'^user/bundle/(?P<bundle_id>[^/]+)/mbox/$', - bundle_views.mbox_redir, + bundle_views.bundle_mbox_redir, name='bundle-mbox-redir'), ] |