summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-03-12 00:55:39 +0100
committerDan McGee <dan@archlinux.org>2013-03-12 00:55:39 +0100
commit64da94fbc9375fe41aaa190034220eafb09473a9 (patch)
tree67b3c7bd7ed0c079601803f1a7f7dbe13743d384
parent6172b6dd09f932de8db7ab69641370d78d25a4c2 (diff)
downloadarchweb-64da94fbc9375fe41aaa190034220eafb09473a9.tar.gz
archweb-64da94fbc9375fe41aaa190034220eafb09473a9.tar.xz
Only show incomplete todolists to unauthenticated users
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 abec925..7636d38 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})