summaryrefslogtreecommitdiff
path: root/public/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-27 22:51:20 -0600
committerDan McGee <dan@archlinux.org>2012-12-27 22:51:20 -0600
commite7c331d361e0b6b5c9fb498793953119afcbf741 (patch)
tree3d8fb711525da4d54a0cc0acde410f909dadc82f /public/views.py
parent0a501af0801a8809683c1931d6a1a18ddd863545 (diff)
Fix master key signing total counts
Commit 4c69911982 had an inadvertent side effect here; we need to explicitly disable ordering for the annotate() to work correctly. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'public/views.py')
-rw-r--r--public/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/views.py b/public/views.py
index fefe032e..44ceb45d 100644
--- a/public/views.py
+++ b/public/views.py
@@ -122,7 +122,7 @@ def keys(request):
master_key_ids = frozenset(key.pgp_key[-16:] for key in master_keys)
sig_counts = PGPSignature.objects.filter(not_expired, valid=True,
- signee__in=user_key_ids).values_list('signer').annotate(
+ signee__in=user_key_ids).order_by().values_list('signer').annotate(
Count('signer'))
sig_counts = {key_id[-16:]: ct for key_id, ct in sig_counts}