From 8ee83b43331bbe4c9d45554178dfa6c98f4f10ab Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 4 Jun 2011 08:48:17 -0500 Subject: [PATCH] Let's redirect back to the media homepage using the slug instead of the id --- mediagoblin/edit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index c3aedac9..0e0faa53 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -53,7 +53,7 @@ def edit_media(request, media): # redirect return exc.HTTPFound( location=request.urlgen("mediagoblin.user_pages.media_home", - user=media.uploader()['username'], media=media['_id'])) + user=media.uploader()['username'], media=media['slug'])) # render template = request.template_env.get_template(