diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-25 19:35:23 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-25 19:35:23 -0400 |
commit | 824bd93116c4c0a48d7112ae0bceb46e70851df5 (patch) | |
tree | 21285571c08e286891b8e7740c543941798fe778 /packages/utils.py | |
parent | 7ccaa7be630e50ce40182d168d41c2f333005443 (diff) | |
parent | 1a1fd4a3d6aa7f6b2338f7751f5f97a30a059a04 (diff) |
Merge branch 'archweb-generic' into master-nomake
Conflicts:
templates/public/download.html
Diffstat (limited to 'packages/utils.py')
-rw-r--r-- | packages/utils.py | 3 |
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 |