summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-11 17:12:53 +0100
committerDan McGee <dan@archlinux.org>2011-11-11 17:12:53 +0100
commit626dd1156dd2b161d90ceb6bf9a9120d982c29f9 (patch)
treef051d19471efd76565bad0b0aa3ea2bfa983b399
parent504a8cabfc84b4ecd4fa72ddee288412dfdb7cc3 (diff)
downloadarchweb-626dd1156dd2b161d90ceb6bf9a9120d982c29f9.tar.gz
archweb-626dd1156dd2b161d90ceb6bf9a9120d982c29f9.tar.xz
Add pkgnames array to JSON package signoffs view
This makes it easier to match up exact packages with their signoff entry. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--packages/views/signoff.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/views/signoff.py b/packages/views/signoff.py
index a42c1c6..26b6e71 100644
--- a/packages/views/signoff.py
+++ b/packages/views/signoff.py
@@ -154,6 +154,7 @@ class SignoffJSONEncoder(DjangoJSONEncoder):
if isinstance(obj, PackageSignoffGroup):
data = dict((attr, getattr(obj, attr))
for attr in self.signoff_group_attrs)
+ data['pkgnames'] = [p.pkgname for p in obj.packages]
data['package_count'] = len(obj.packages)
data['approved'] = obj.approved()
data.update((attr, getattr(obj.specification, attr))