diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-22 20:58:50 -0700 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-22 20:58:50 -0700 |
commit | be49f26a815cca589c625ff8dd99c85a80262281 (patch) | |
tree | f5dea9ff35406c9392aa2ae9047653011031c23c /packages/models.py | |
parent | 69fd83df03806585c3b7d6b115af916a73f4ae41 (diff) |
Slight optimization when searching for removed package
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/models.py')
-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 ef86d8e9..ff677883 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(), |