summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-04 15:22:38 +0200
committerDan McGee <dan@archlinux.org>2012-09-04 15:22:38 +0200
commit0926cf30f4bacf7922c2f27e4f27f78f8182aee0 (patch)
tree7abc77868781865a000083b3859cdb0a82df24af
parenteb44404a17ae9feacdf2948a5cda958510ac2fed (diff)
downloadarchweb-0926cf30f4bacf7922c2f27e4f27f78f8182aee0.tar.gz
archweb-0926cf30f4bacf7922c2f27e4f27f78f8182aee0.tar.xz
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>
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 42f8e89..9ab4b4a 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