diff options
author | Dan McGee <dan@archlinux.org> | 2011-11-30 14:45:05 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-30 14:45:05 -0600 |
commit | 025042ef0d23378a5f10fe1cff8f660f51638615 (patch) | |
tree | a05d09566c2fd320fbfa5c72e210f047e79ebc26 /public | |
parent | 7c84bea7dabdfbc307d373620b00214777d91a97 (diff) |
Master keys: reduce query count, add default orderingrelease_2011-11-30
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'public')
-rw-r--r-- | public/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/views.py b/public/views.py index 95b590fc..40512614 100644 --- a/public/views.py +++ b/public/views.py @@ -79,7 +79,8 @@ def feeds(request): def keys(request): context = { - 'keys': MasterKey.objects.select_related('owner', 'revoker').all(), + 'keys': MasterKey.objects.select_related('owner', 'revoker', + 'owner__userprofile', 'revoker__userprofile').all(), } return direct_to_template(request, 'public/keys.html', context) |