summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-06-25 00:09:41 +0200
committerDan McGee <dan@archlinux.org>2010-06-25 00:09:41 +0200
commit0fb770442eb86aa021e8b1c352185b7295495c77 (patch)
tree6599d2af9ba78e4d0bbd54523107c19b86f2c468
parente361a1e8731ce08f7a632b3914e7a0454191e01d (diff)
downloadarchweb-0fb770442eb86aa021e8b1c352185b7295495c77.tar.gz
archweb-0fb770442eb86aa021e8b1c352185b7295495c77.tar.xz
Mark a few more pages as never cache
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--todolists/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/todolists/views.py b/todolists/views.py
index cdf503a..a663ad2 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -46,12 +46,14 @@ def flag(request, listid, pkgid):
return HttpResponseRedirect('/todo/%s/' % (listid))
@login_required
+@never_cache
def view(request, listid):
list = get_object_or_404(Todolist, id=listid)
return render_to_response('todolists/view.html',
RequestContext(request, {'list':list}))
@login_required
+@never_cache
def list(request):
lists = Todolist.objects.select_related('creator').order_by('-date_added')
for l in lists: