]> git.ozlabs.org Git - patchwork/commit
bundles: Remove separate public bundle views
authorJeremy Kerr <jk@ozlabs.org>
Sat, 20 Apr 2013 13:45:40 +0000 (21:45 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Sat, 20 Apr 2013 14:45:20 +0000 (22:45 +0800)
commit5d0140ef04ababd93c45b5126ee1b412bd778da5
treeef1c8adf417e7c1d4e556d50877dfaf4e1f263aa
parent627f5aca263da2513fe6d592becd3b505d97dd21
bundles: Remove separate public bundle views

Having two views for bundles (public and non-public) can cause confusion
when bundle owners want to share a URL; it's not obvious that the
private URL isn't shareable.

This change removes the private URLs, and puts all bundles under the
/bundle/<username>/<bundlename>/ URL space. For non-public bundles, this
will just 404 for non-owners.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/models.py
apps/patchwork/tests/bundles.py
apps/patchwork/tests/user.py
apps/patchwork/urls.py
apps/patchwork/views/bundle.py
apps/settings.py
templates/patchwork/bundle-public.html [deleted file]
templates/patchwork/bundle.html
templates/patchwork/bundles.html
templates/patchwork/profile.html