aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-29 20:51:17 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-29 20:51:17 -0500
commit52359e9103e85e153e3012332e59bd64abf83dbc (patch)
treeafcddc7b5224e830c1bc54a329db95e6a00babfc
parent95e6da024d019c0f93d041aedc19b2bf6697a3fd (diff)
downloadmediagoblin-52359e9103e85e153e3012332e59bd64abf83dbc.tar.lz
mediagoblin-52359e9103e85e153e3012332e59bd64abf83dbc.tar.xz
mediagoblin-52359e9103e85e153e3012332e59bd64abf83dbc.zip
Excitedly send a user a message that their comment was posted.
-rw-r--r--mediagoblin/user_pages/views.py6
1 files changed, 6 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
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'])