summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-03 21:32:30 -0500
committerDan McGee <dan@archlinux.org>2011-11-03 21:32:30 -0500
commit0aa42e2c01df2bf1c9e425994420f5ae10252597 (patch)
tree8c1b302064748dfe4736dac7659157a162b5f87a /packages
parent5e295a3dbb0b64f229e9419384721b154e013b9e (diff)
Allow signoff manipulation if you are a maintainer
This is a more expensive and not-yet-optimized way of doing this, but we can fix that later as needed. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/utils.py b/packages/utils.py
index 60b95e21..1a2c0de0 100644
--- a/packages/utils.py
+++ b/packages/utils.py
@@ -2,6 +2,7 @@ from operator import itemgetter
from django.db import connection
from django.db.models import Count, Max
+from django.contrib.auth.models import User
from main.models import Package, Repo
from main.utils import cache_function, groupby_preserve_order, PackageStandin
@@ -172,6 +173,9 @@ class PackageSignoffGroup(object):
self.version = ''
self.last_update = first.last_update
self.packager = first.packager
+ self.maintainers = User.objects.filter(
+ package_relations__type=PackageRelation.MAINTAINER,
+ package_relations__pkgbase=self.pkgbase)
self.specification = \
SignoffSpecification.objects.get_or_default_from_package(first)