From: Aaron Williamson Date: Tue, 18 Sep 2012 15:16:26 +0000 (-0400) Subject: Fixed post-collect redirect to always take user to image collected. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c9ac6841c42108a3266ce0fc015fa72d6c3e8b4f;p=mediagoblin.git Fixed post-collect redirect to always take user to image collected. --- diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 187bba96..41610336 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -248,7 +248,7 @@ def media_collect(request, media): request, messages.SUCCESS, _('"%s" added to collection "%s"' % (media.title, collection.title))) return redirect(request, "mediagoblin.user_pages.media_home", - user=request.user.username, + user=media.get_uploader.username, media=media.id) else: messages.add_message(