Add user in template dictonary as it is in the url field.
authorAditi <aditi.iitr@gmail.com>
Sun, 30 Jun 2013 04:01:29 +0000 (09:31 +0530)
committerAditi <aditi.iitr@gmail.com>
Sun, 30 Jun 2013 04:01:29 +0000 (09:31 +0530)
mediagoblin/media_types/blog/views.py

index b3e7c0a4d89392b830fd0c6c4c8871fdb9717521..5a9498cd50c43a22240f340a5068ac98a43e07c8 100644 (file)
@@ -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})
                        
-                       
-                       
-                       
+
+