summaryrefslogtreecommitdiff
path: root/todolists/views.py
diff options
context:
space:
mode:
authorEvangelos Foutras <foutrelis@gmail.com>2010-06-28 14:17:15 +0300
committerDan McGee <dan@archlinux.org>2010-06-28 06:51:43 -0500
commit86d503af5a68a8e0b13f565d6960125bdacf6936 (patch)
treebd2b208bec14ddfce30b468b673bef46b02382f9 /todolists/views.py
parent0fb770442eb86aa021e8b1c352185b7295495c77 (diff)
Mark the todolists' flag view as never_cache
Also remove the @vary_on_headers('X-Requested-With') since it's irrelevant now. Dan: remove now unnecessary import. Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/views.py')
-rw-r--r--todolists/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/todolists/views.py b/todolists/views.py
index a663ad24..d60535b1 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -6,7 +6,6 @@ from django.core.mail import send_mail
from django.shortcuts import get_object_or_404, render_to_response
from django.contrib.auth.decorators import login_required, permission_required
from django.views.decorators.cache import never_cache
-from django.views.decorators.vary import vary_on_headers
from django.views.generic.create_update import delete_object
from django.template import Context, loader
from django.utils import simplejson
@@ -33,7 +32,7 @@ class TodoListForm(forms.Form):
@login_required
-@vary_on_headers('X-Requested-With')
+@never_cache
def flag(request, listid, pkgid):
list = get_object_or_404(Todolist, id=listid)
pkg = get_object_or_404(TodolistPkg, id=pkgid)