summaryrefslogtreecommitdiff
path: root/packages/utils.py
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-25 19:35:48 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-25 19:35:48 -0400
commitf8e3c3b96277dc66a0d378b5d825bf1837daf1ee (patch)
treea14af7bf10f170938de28c316c1271d247e16d3c /packages/utils.py
parent6e6f3c906c59360c792d3387eb0662f7f0f3eddc (diff)
parent824bd93116c4c0a48d7112ae0bceb46e70851df5 (diff)
Merge branch 'master-nomake'
Diffstat (limited to 'packages/utils.py')
-rw-r--r--packages/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/utils.py b/packages/utils.py
index fade0855..c38aa840 100644
--- a/packages/utils.py
+++ b/packages/utils.py
@@ -247,7 +247,8 @@ SELECT DISTINCT id
cursor = connection.cursor()
cursor.execute(sql, [PackageRelation.MAINTAINER])
to_fetch = [row[0] for row in cursor.fetchall()]
- relations = PackageRelation.objects.select_related('user').filter(
+ relations = PackageRelation.objects.select_related(
+ 'user', 'user__userprofile').filter(
id__in=to_fetch)
return relations