Let's redirect back to the media homepage using the slug instead of the id

This commit is contained in:
Christopher Allan Webber 2011-06-04 08:48:17 -05:00
parent 747623cc04
commit 8ee83b4333

View File

@ -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(