From 64da94fbc9375fe41aaa190034220eafb09473a9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 11 Mar 2013 18:55:39 -0500 Subject: Only show incomplete todolists to unauthenticated users Signed-off-by: Dan McGee --- todolists/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/todolists/views.py b/todolists/views.py index abec9253..7636d38e 100644 --- a/todolists/views.py +++ b/todolists/views.py @@ -92,7 +92,8 @@ def list_pkgbases(request, slug, svn_root): def todolist_list(request): - lists = get_annotated_todolists() + incomplete_only = request.user.is_anonymous() + lists = get_annotated_todolists(incomplete_only) return render(request, 'todolists/list.html', {'lists': lists}) -- cgit v1.2.3-55-g3dc8