From: Christopher Allan Webber Date: Thu, 30 Jun 2011 01:51:17 +0000 (-0500) Subject: Excitedly send a user a message that their comment was posted. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=52359e9103e85e153e3012332e59bd64abf83dbc;p=mediagoblin.git Excitedly send a user a message that their comment was posted. --- diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index d581f19c..399d2020 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -15,6 +15,8 @@ # along with this program. If not, see . from webob import exc + +from mediagoblin import messages from mediagoblin.db.util import DESCENDING, ObjectId from mediagoblin.util import ( Pagination, render_to_response, redirect, cleaned_markdown_conversion) @@ -115,6 +117,10 @@ def media_post_comment(request): comment.save() + messages.add_message( + request, messages.SUCCESS, + 'Comment posted!') + return redirect(request, 'mediagoblin.user_pages.media_home', media = request.matchdict['media'], user = request.matchdict['user'])