summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-03-11 18:55:39 -0500
committerDan McGee <dan@archlinux.org>2013-03-11 18:55:39 -0500
commit64da94fbc9375fe41aaa190034220eafb09473a9 (patch)
tree67b3c7bd7ed0c079601803f1a7f7dbe13743d384
parent6172b6dd09f932de8db7ab69641370d78d25a4c2 (diff)
Only show incomplete todolists to unauthenticated usersrelease_2013-03-11
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--todolists/views.py3
1 files changed, 2 insertions, 1 deletions
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})