Fixed post-collect redirect to always take user to image collected.
authorAaron Williamson <aaron@copiesofcopies.org>
Tue, 18 Sep 2012 15:16:26 +0000 (11:16 -0400)
committerJoar Wandborg <git@wandborg.com>
Tue, 18 Sep 2012 16:10:36 +0000 (18:10 +0200)
mediagoblin/user_pages/views.py

index 187bba96393a7aec75a077150f56af2795909347..416103361ec00b9ba3e01f6b0340013f596449a1 100644 (file)
@@ -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(