summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 8d5da3b..570221b 100644
--- a/main/models.py
+++ b/main/models.py
@@ -205,7 +205,7 @@ class Package(models.Model):
"""
Returns a list of package objects.
"""
- requiredby = Package.objects.filter(
+ requiredby = Package.objects.select_related('arch', 'repo').filter(
packagedepend__depname=self.pkgname,
arch__name__in=(self.arch.name, 'Any'))
return requiredby.order_by('pkgname')