summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-19 06:53:01 +0100
committerDan McGee <dan@archlinux.org>2011-02-19 07:32:26 +0100
commit330048eab6cf9bacf2d7bb436a101a3b7469aca7 (patch)
tree97bdf25c3168848c63ba7b7b5c2f5101919fa8a8
parent3fb20c942da5afece6f8717a9c3bf878e18b508a (diff)
downloadarchweb-330048eab6cf9bacf2d7bb436a101a3b7469aca7.tar.gz
archweb-330048eab6cf9bacf2d7bb436a101a3b7469aca7.tar.xz
Unify calls to applicable_arches()
Invoke the function everywhere it is used rather than passing a callable. 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 73a7620..b7ab805 100644
--- a/main/models.py
+++ b/main/models.py
@@ -264,7 +264,7 @@ class Package(models.Model):
repo.testing flag. For any non-split packages, the return value will be
an empty list.
"""
- return Package.objects.filter(arch__in=self.applicable_arches,
+ return Package.objects.filter(arch__in=self.applicable_arches(),
repo__testing=self.repo.testing, pkgbase=self.pkgbase).exclude(id=self.id)
def get_svn_link(self, svnpath):