aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/views.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-01-17 15:51:30 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-01-17 15:51:30 -0600
commit00cf28da215e73c494f553e7de3d21a9b63cf0cf (patch)
tree461ee702dca35ea6ffe56380286c24abe3bd155f /mediagoblin/user_pages/views.py
parentc813f0bd5776dde0e3c42c12b17f83f211b50e6a (diff)
parentba5ea989a5826440e8b84af8128dadd0ae252259 (diff)
downloadmediagoblin-00cf28da215e73c494f553e7de3d21a9b63cf0cf.tar.lz
mediagoblin-00cf28da215e73c494f553e7de3d21a9b63cf0cf.tar.xz
mediagoblin-00cf28da215e73c494f553e7de3d21a9b63cf0cf.zip
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r--mediagoblin/user_pages/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index 30c78a38..d1ec23dc 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -226,6 +226,10 @@ def media_collect(request, media):
messages.add_message(
request, messages.ERROR,
_('You have to select or add a collection'))
+ return redirect(request, "mediagoblin.user_pages.media_collect",
+ user=media.get_uploader.username,
+ media=media.id)
+
# Check whether media already exists in collection
elif CollectionItem.query.filter_by(