diff options
Diffstat (limited to 'todolists')
-rw-r--r-- | todolists/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/todolists/views.py b/todolists/views.py index 00236c6..9b64c25 100644 --- a/todolists/views.py +++ b/todolists/views.py @@ -44,7 +44,7 @@ def view(request, listid): @login_required def list(request): - lists = Todolist.objects.order_by('-date_added') + lists = Todolist.objects.select_related('creator').order_by('-date_added') for l in lists: l.complete = TodolistPkg.objects.filter( list=l.id,complete=False).count() == 0 |