summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-23 04:58:50 +0100
committerDan McGee <dan@archlinux.org>2013-01-23 04:58:50 +0100
commitbe49f26a815cca589c625ff8dd99c85a80262281 (patch)
treef5dea9ff35406c9392aa2ae9047653011031c23c
parent69fd83df03806585c3b7d6b115af916a73f4ae41 (diff)
downloadarchweb-be49f26a815cca589c625ff8dd99c85a80262281.tar.gz
archweb-be49f26a815cca589c625ff8dd99c85a80262281.tar.xz
Slight optimization when searching for removed package
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--packages/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/models.py b/packages/models.py
index ef86d8e..ff67788 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -318,7 +318,8 @@ class Update(models.Model):
return u'%s-%s' % (self.new_pkgver, self.new_pkgrel)
def elsewhere(self):
- return Package.objects.filter(pkgname=self.pkgname, arch=self.arch)
+ return Package.objects.normal().filter(
+ pkgname=self.pkgname, arch=self.arch)
def __unicode__(self):
return u'%s of %s on %s' % (self.get_action_flag_display(),