From e7c331d361e0b6b5c9fb498793953119afcbf741 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 27 Dec 2012 22:51:20 -0600 Subject: 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 --- public/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public') diff --git a/public/views.py b/public/views.py index fefe032..44ceb45 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} -- cgit v1.2.3-24-g4f1b