summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-04 08:22:38 -0500
committerDan McGee <dan@archlinux.org>2012-09-04 08:22:38 -0500
commit0926cf30f4bacf7922c2f27e4f27f78f8182aee0 (patch)
tree7abc77868781865a000083b3859cdb0a82df24af /main
parenteb44404a17ae9feacdf2948a5cda958510ac2fed (diff)
Filter out spam flag requests on package details page
No need to show these as a matching request. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 42f8e89a..9ab4b4ad 100644
--- a/main/models.py
+++ b/main/models.py
@@ -360,7 +360,7 @@ class Package(models.Model):
# request from a different pkgrel.
request = FlagRequest.objects.filter(pkgbase=self.pkgbase,
repo=self.repo, pkgver=self.pkgver,
- epoch=self.epoch).latest()
+ epoch=self.epoch, is_spam=False).latest()
return request
except FlagRequest.DoesNotExist:
return None