summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-15 18:20:15 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-15 18:20:15 -0500
commit080e01e9ae49a1f2c65b6ee73b57d9c95c2a2742 (patch)
tree077c7fcbb5c749951527315850c7b5a188eefa6f
parent7221e10264b25d9495e2882ce33ce2e6f712426f (diff)
downloadaskbot-080e01e9ae49a1f2c65b6ee73b57d9c95c2a2742.tar.gz
askbot-080e01e9ae49a1f2c65b6ee73b57d9c95c2a2742.tar.bz2
askbot-080e01e9ae49a1f2c65b6ee73b57d9c95c2a2742.zip
minor change in ajax handler called "vote"
-rw-r--r--forum/views/content.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/views/content.py b/forum/views/content.py
index ebb18f59..744552df 100644
--- a/forum/views/content.py
+++ b/forum/views/content.py
@@ -1111,7 +1111,7 @@ def vote(request, id):#refactor - pretty incomprehensible view used by various a
response_data['allowed'] = 0
response_data['success'] = 0
- elif request.is_ajax():
+ elif request.is_ajax() and request.method == 'POST':
question = get_object_or_404(Question, id=id)
vote_type = request.POST.get('type')