diff options
author | Dan McGee <dan@archlinux.org> | 2011-11-11 17:12:53 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-11 17:12:53 +0100 |
commit | 626dd1156dd2b161d90ceb6bf9a9120d982c29f9 (patch) | |
tree | f051d19471efd76565bad0b0aa3ea2bfa983b399 /packages | |
parent | 504a8cabfc84b4ecd4fa72ddee288412dfdb7cc3 (diff) | |
download | archweb-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>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/views/signoff.py | 1 |
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)) |