From dee425d26c103b6fa0fbec827b5e40c53559753d Mon Sep 17 00:00:00 2001 From: Aditi Date: Fri, 9 Aug 2013 14:45:06 +0530 Subject: [PATCH] Replace edit blogpost url from default media_edit url to blogpost edit url. --- .../templates/mediagoblin/user_pages/blog_media.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/user_pages/blog_media.html b/mediagoblin/templates/mediagoblin/user_pages/blog_media.html index 978bf944..25dd4783 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/blog_media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/blog_media.html @@ -70,9 +70,9 @@ {% if request.user and (media.uploader == request.user.id or request.user.is_admin) %} - {% set edit_url = request.urlgen('mediagoblin.edit.edit_media', - user= media.get_uploader.username, - media_id=media.id) %} + {% set edit_url = request.urlgen('mediagoblin.media_types.blog.blogpost.edit', + blog_slug=media.media_manager.get_blog_by_blogpost().slug, + user=request.user.username, blog_post_slug=media.slug) %} {% trans %}Edit{% endtrans %} {% set delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete', user= media.get_uploader.username, -- 2.25.1