summaryrefslogtreecommitdiffstats
path: root/devel/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-11 01:27:18 +0200
committerDan McGee <dan@archlinux.org>2010-09-11 01:27:18 +0200
commitfa4f5c15c886be04687764877a9e8f9e296143c1 (patch)
tree0786e602bf0cafd980365abdf6e26cfe220fdccb /devel/views.py
parentd6f29d503180054a3ee8af2beeebcd5da9115ec8 (diff)
downloadarchweb-fa4f5c15c886be04687764877a9e8f9e296143c1.tar.gz
archweb-fa4f5c15c886be04687764877a9e8f9e296143c1.tar.xz
Restore flagged package count by maintainer in dashboard
We need to do a little dropping into SQL to accomplish this, but it isn't all that bad to actually do and we can do the whole thing in one query. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/views.py b/devel/views.py
index eea90e3..3703767 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -12,6 +12,7 @@ from main.models import Arch, Repo
from main.models import UserProfile
from mirrors.models import Mirror
from packages.models import PackageRelation
+from .utils import get_annotated_maintainers
import random
from string import ascii_letters, digits
@@ -28,8 +29,8 @@ def index(request):
'pkg', 'pkg__arch', 'pkg__repo').filter(complete=False)
todopkgs = todopkgs.filter(pkg__pkgbase__in=inner_q).order_by(
'list__name', 'pkg__pkgname')
- maintainers = User.objects.filter(is_active=True).order_by(
- 'first_name', 'last_name')
+
+ maintainers = get_annotated_maintainers()
page_dict = {
'todos': Todolist.objects.incomplete().order_by('-date_added'),