diff options
Diffstat (limited to 'askbot/views/commands.py')
-rw-r--r-- | askbot/views/commands.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/askbot/views/commands.py b/askbot/views/commands.py index 8d16c35f..809d4249 100644 --- a/askbot/views/commands.py +++ b/askbot/views/commands.py @@ -12,6 +12,7 @@ from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseRedirect from django.forms import ValidationError from django.shortcuts import get_object_or_404 +from django.views.decorators import csrf from django.utils import simplejson from django.utils.translation import ugettext as _ from askbot import models @@ -391,6 +392,7 @@ def get_tag_list(request): output = '\n'.join(tag_names) return HttpResponse(output, mimetype = "text/plain") +@csrf.csrf_protect def subscribe_for_tags(request): """process subscription of users by tags""" #todo - use special separator to split tags @@ -471,6 +473,7 @@ def set_tag_filter_strategy(request): @login_required +@csrf.csrf_protect def close(request, id):#close question """view to initiate and process question close @@ -500,6 +503,7 @@ def close(request, id):#close question return HttpResponseRedirect(question.get_absolute_url()) @login_required +@csrf.csrf_protect def reopen(request, id):#re-open question """view to initiate and process question close |