diff options
author | Dusty Phillips <buchuki@gmail.com> | 2009-04-13 22:11:10 -0400 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2009-04-13 22:14:53 -0400 |
commit | bb93f05f56f2b22a662f85736549a72735864b20 (patch) | |
tree | 0426384992ef3845ce86121f8782232b9e25f3be /packages | |
parent | a9fd048f5499529a264ac7bf3ea52a14e1cbd97e (diff) |
FS#11325. Add a 'Target Repo' column to the signoffs page.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/views.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py index e986409c..49ab9a0a 100644 --- a/packages/views.py +++ b/packages/views.py @@ -151,8 +151,17 @@ def unflag(request, pkgid): def signoffs(request): packages = Package.objects.filter(repo__name="Testing").order_by("pkgname") + package_list = [] + other_packages = Package.objects.exclude(repo__name="Testing") + for package in packages: + other_package = other_packages.filter(pkgname=package.pkgname) + if len(other_package): + repo = other_package[0].repo.name + else: + repo = "Unknown" + package_list.append((package, repo)) return render_to_response('packages/signoffs.html', - RequestContext(request, {'packages': packages})) + RequestContext(request, {'packages': package_list})) def signoff_package(request, arch, pkgname): pkg = get_object_or_404(Package, |