Skip to content
Browse files

nm, distinct + annotate aren't supported

  • Loading branch information...
1 parent f3a545b commit 096b08935d4067e975460c33431522b314a2ced8 Josh Levinger committed May 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 boris/registrant/views.py
View
4 boris/registrant/views.py
@@ -121,8 +121,8 @@ def stats(request):
context['avg_fields_completed'] = RegistrationProgress.objects.filter(registrant__ignore=False).distinct('registrant__email').\
count() / float(Registrant.objects.filter(ignore=False).count())
- started_by_layout_list = Registrant.objects.filter(ignore=False).distinct('email').\
- values('layout').annotate(lcount=Count('id')).order_by()
+ started_by_layout_list = Registrant.objects.filter(ignore=False).values('layout').\
+ annotate(lcount=Count('id')).order_by()
#convert from a list to a dict
started_by_layout = {}
for l in started_by_layout_list:

0 comments on commit 096b089

Please sign in to comment.
Something went wrong with that request. Please try again.