diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-23 04:58:50 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-23 04:58:50 +0100 |
commit | be49f26a815cca589c625ff8dd99c85a80262281 (patch) | |
tree | f5dea9ff35406c9392aa2ae9047653011031c23c /packages | |
parent | 69fd83df03806585c3b7d6b115af916a73f4ae41 (diff) | |
download | archweb-be49f26a815cca589c625ff8dd99c85a80262281.tar.gz archweb-be49f26a815cca589c625ff8dd99c85a80262281.tar.xz |
Slight optimization when searching for removed package
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/models.py | 3 |
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(), |