diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-09 16:29:38 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-09 16:34:10 -0500 |
commit | 064813560c20f53f9fd759d0c4e0f0a6729c8ba6 (patch) | |
tree | f1cb259c155896a00659df086e34a6c4d88460f9 /devel/views.py | |
parent | 842f59d018947ca696cf116e9d1591f2ad83f8a7 (diff) |
Show more info about todolists on developer dashboardrelease_2011-04-09
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r-- | devel/views.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/devel/views.py b/devel/views.py index cb0ff056..b61e605f 100644 --- a/devel/views.py +++ b/devel/views.py @@ -11,10 +11,11 @@ from django.template import loader, Context from django.views.decorators.cache import never_cache from django.views.generic.simple import direct_to_template -from main.models import Package, Todolist, TodolistPkg +from main.models import Package, TodolistPkg from main.models import Arch, Repo from main.models import UserProfile from packages.models import PackageRelation +from todolists.utils import get_annotated_todolists from .utils import get_annotated_maintainers import datetime @@ -35,6 +36,9 @@ def index(request): todopkgs = todopkgs.filter(pkg__pkgbase__in=inner_q).order_by( 'list__name', 'pkg__pkgname') + todolists = get_annotated_todolists() + todolists = [todolist for todolist in todolists if todolist.incomplete_count > 0] + maintainers = get_annotated_maintainers() maintained = PackageRelation.objects.filter( @@ -48,7 +52,7 @@ def index(request): } page_dict = { - 'todos': Todolist.objects.incomplete().order_by('-date_added'), + 'todos': todolists, 'repos': Repo.objects.all(), 'arches': Arch.objects.all(), 'maintainers': maintainers, |