summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-06 11:08:22 -0500
committerDan McGee <dan@archlinux.org>2011-07-06 11:08:22 -0500
commit0f9a1da2cb9dd2a20a5e12bb346ec460b4335f9f (patch)
treedfd77dcbfcf2037ab894ac39287ba777850556e9 /packages/views.py
parent52363933c0b04848a26c8ed65e7f975ccfc5b846 (diff)
Move package signoff URL to more logical location
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/views.py b/packages/views.py
index 01d01e20..d12583f0 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -372,11 +372,9 @@ def signoffs(request):
@permission_required('main.change_package')
@never_cache
-def signoff_package(request, arch, pkgname):
+def signoff_package(request, name, repo, arch):
pkg = get_object_or_404(Package,
- arch__name=arch,
- pkgname=pkgname,
- repo__testing=True)
+ pkgname=name, repo__name__iexact=repo, arch__name=arch)
signoff, created = Signoff.objects.get_or_create(
pkg=pkg,