summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-11 10:12:53 -0600
committerDan McGee <dan@archlinux.org>2011-11-11 10:12:53 -0600
commit626dd1156dd2b161d90ceb6bf9a9120d982c29f9 (patch)
treef051d19471efd76565bad0b0aa3ea2bfa983b399 /packages
parent504a8cabfc84b4ecd4fa72ddee288412dfdb7cc3 (diff)
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>
Diffstat (limited to 'packages')
-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 a42c1c66..26b6e710 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))