summaryrefslogtreecommitdiff
path: root/patchwork/urls.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen.finucane@intel.com>2016-03-04 15:24:00 +0000
committerStephen Finucane <stephen.finucane@intel.com>2016-04-14 17:28:57 +0100
commit2a2c22d411bf43f908ecab8f2c66a7b52d946349 (patch)
tree99c316fd78c87ba1decbf778073e56967b90780f /patchwork/urls.py
parent7bf4304821ab70bf4c86d7139e0c1a4753f6e5b8 (diff)
downloadpatchwork-2a2c22d411bf43f908ecab8f2c66a7b52d946349.tar
patchwork-2a2c22d411bf43f908ecab8f2c66a7b52d946349.tar.gz
views: Integrate cover letter support
There isn't really any need to list cover letters right now, seeing as they're really only valuable in the context of series. However, if someone requests a cover letter by ID then this should be displayed. To this effect, add a new "covers" endpoint that can display the basic elements of the cover letter. This includes redirects from/to the "patches" endpoint. Signed-off-by: Stephen Finucane <stephen.finucane@intel.com> Reviewed-by: Andy Doan <andy.doan@linaro.org>
Diffstat (limited to 'patchwork/urls.py')
-rw-r--r--patchwork/urls.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/patchwork/urls.py b/patchwork/urls.py
index f3fdc5b..f664501 100644
--- a/patchwork/urls.py
+++ b/patchwork/urls.py
@@ -25,6 +25,7 @@ from django.contrib.auth import views as auth_views
from patchwork import views
from patchwork.views import api as api_views
from patchwork.views import bundle as bundle_views
+from patchwork.views import cover as cover_views
from patchwork.views import help as help_views
from patchwork.views import mail as mail_views
from patchwork.views import patch as patch_views
@@ -55,6 +56,10 @@ urlpatterns = [
url(r'^patch/(?P<patch_id>\d+)/mbox/$', patch_views.mbox,
name='patch-mbox'),
+ # cover views
+ url(r'^cover/(?P<cover_id>\d+)/$', cover_views.cover,
+ name='cover-detail'),
+
# logged-in user stuff
url(r'^user/$', user_views.profile, name='user-profile'),