diff options
author | Dan McGee <dan@archlinux.org> | 2011-11-11 10:43:18 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-11 10:43:18 -0600 |
commit | 022692b3f33de8c45741d3cb27fa95f9f6facdea (patch) | |
tree | d84d744dd060a922e599bb85334df8abe1c92569 /devel/views.py | |
parent | 21d5f818a60ab2626f941f8ff53e263e802494d5 (diff) |
Show relevant signoffs on dashboard
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r-- | devel/views.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/devel/views.py b/devel/views.py index 694ed6dc..0002df04 100644 --- a/devel/views.py +++ b/devel/views.py @@ -18,6 +18,7 @@ from main.models import Package, PackageDepend, PackageFile, TodolistPkg from main.models import Arch, Repo from main.models import UserProfile from packages.models import PackageRelation +from packages.utils import get_signoff_groups from todolists.utils import get_annotated_todolists from .utils import get_annotated_maintainers @@ -48,6 +49,9 @@ def index(request): todolists = get_annotated_todolists() todolists = [todolist for todolist in todolists if todolist.incomplete_count > 0] + signoffs = sorted(get_signoff_groups(user=request.user), + key=operator.attrgetter('pkgbase')) + maintainers = get_annotated_maintainers() maintained = PackageRelation.objects.filter( @@ -70,6 +74,7 @@ def index(request): 'orphan': orphan, 'flagged' : flagged, 'todopkgs' : todopkgs, + 'signoffs': signoffs } return direct_to_template(request, 'devel/index.html', page_dict) |