diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-25 09:54:24 -0700 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-25 09:54:24 -0700 |
commit | 4244ff7a42566949f8ee85e922ed48f4a80407f7 (patch) | |
tree | 21caf4d67aa36d06c6a921608901ad059752e744 /packages/views/flag.py | |
parent | f9252df1138ae388168cf76cb3d654a2abbce4ec (diff) | |
parent | dc6cc49f6f876983f76f5f8c05a2285801f27ea0 (diff) |
Merge branch 'on-the-plane'release_2013-01-25
Diffstat (limited to 'packages/views/flag.py')
-rw-r--r-- | packages/views/flag.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/views/flag.py b/packages/views/flag.py index dadadd19..edb3f092 100644 --- a/packages/views/flag.py +++ b/packages/views/flag.py @@ -49,7 +49,7 @@ def flaghelp(request): @never_cache def flag(request, name, repo, arch): - pkg = get_object_or_404(Package, + pkg = get_object_or_404(Package.objects.normal(), pkgname=name, repo__name__iexact=repo, arch__name=arch) if pkg.flag_date is not None: # already flagged. do nothing. @@ -158,7 +158,7 @@ def flag_confirmed(request, name, repo, arch): @permission_required('main.change_package') def unflag(request, name, repo, arch): - pkg = get_object_or_404(Package, + pkg = get_object_or_404(Package.objects.normal(), pkgname=name, repo__name__iexact=repo, arch__name=arch) pkg.flag_date = None pkg.save() @@ -166,7 +166,7 @@ def unflag(request, name, repo, arch): @permission_required('main.change_package') def unflag_all(request, name, repo, arch): - pkg = get_object_or_404(Package, + pkg = get_object_or_404(Package.objects.normal(), pkgname=name, repo__name__iexact=repo, arch__name=arch) # find all packages from (hopefully) the same PKGBUILD pkgs = Package.objects.filter(pkgbase=pkg.pkgbase, |