Commit 3eb787b3 authored by Élie Bouttier's avatar Élie Bouttier

fix todo

parent a76a68d2
......@@ -18,7 +18,7 @@ from .decorators import allowed_tasklist_required
def tasklist_list(request):
lists = TaskList.objects.all()
if not request.user.is_superuser:
lists = lists.filter(group__in=request.user.groups.all())
lists = lists.filter(groups__in=request.user.groups.all())
lists = lists.order_by('name')
lists = lists.annotate(own_uncompleted_task_count=Count('task', filter=Q(task__completed_date__isnull=True, task__assigned_to=request.user)))
return render(request, 'todo/tasklist_list.html', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment