diff options
-rw-r--r-- | forum/views/content.py | 2 |
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') |