summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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})