diff gpp/forums/views.py @ 99:10d6182b9f6e

Forums: added error handling to the flagging of posts. Did the same with the comments function too.
author Brian Neal <bgneal@gmail.com>
date Mon, 14 Sep 2009 00:06:08 +0000
parents d0d779dd0832
children eb9f99382476
line wrap: on
line diff
--- a/gpp/forums/views.py	Sun Sep 13 21:45:35 2009 +0000
+++ b/gpp/forums/views.py	Mon Sep 14 00:06:08 2009 +0000
@@ -193,7 +193,7 @@
     be the target of an AJAX post.
     """
     if not request.user.is_authenticated():
-        return HttpResponse('Please login or register to flag a post.')
+        return HttpResponseForbidden('Please login or register to flag a post.')
 
     id = request.POST.get('id')
     if id is None: