From: Aditi Date: Sun, 30 Jun 2013 04:01:29 +0000 (+0530) Subject: Add user in template dictonary as it is in the url field. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6e947ab94319e94d7c621b6aa099890fafaff72a;p=mediagoblin.git Add user in template dictonary as it is in the url field. --- diff --git a/mediagoblin/media_types/blog/views.py b/mediagoblin/media_types/blog/views.py index b3e7c0a4..5a9498cd 100644 --- a/mediagoblin/media_types/blog/views.py +++ b/mediagoblin/media_types/blog/views.py @@ -22,6 +22,7 @@ from mediagoblin import messages from mediagoblin import mg_globals from mediagoblin.media_types.blog import forms as blog_forms +from mediagoblin.messages import add_message, SUCCESS #from mediagoblin.edit.lib import may_edit_media from mediagoblin.decorators import (require_active_login, active_user_from_url, get_media_entry_by_id, user_may_alter_collection, @@ -74,8 +75,10 @@ def blog_create(request, media=None): request, 'mediagoblin/blog/blog_edit_create.html', {'blog_form': blog_form, + 'user' : request.user, 'app_config': mg_globals.app_config}) + @require_active_login @user_may_alter_collection @get_user_collection @@ -116,9 +119,8 @@ def blog_edit(request, collection): {'blog': blog, 'form': blog_form}) - - - + +