Let's redirect back to the media homepage using the slug instead of the id
This commit is contained in:
parent
747623cc04
commit
8ee83b4333
@ -53,7 +53,7 @@ def edit_media(request, media):
|
|||||||
# redirect
|
# redirect
|
||||||
return exc.HTTPFound(
|
return exc.HTTPFound(
|
||||||
location=request.urlgen("mediagoblin.user_pages.media_home",
|
location=request.urlgen("mediagoblin.user_pages.media_home",
|
||||||
user=media.uploader()['username'], media=media['_id']))
|
user=media.uploader()['username'], media=media['slug']))
|
||||||
|
|
||||||
# render
|
# render
|
||||||
template = request.template_env.get_template(
|
template = request.template_env.get_template(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user