Ignore:
Timestamp:
Nov 29, 2013, 2:04:54 AM (12 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, stable, stage
Children:
e4a35ff
Parents:
0e2426b
git-author:
Alex Dehnert <adehnert@…> (11/29/13 02:04:54)
git-committer:
Alex Dehnert <adehnert@…> (11/29/13 02:04:54)
Message:

Do my counting in the DB...

Really, I'd like to use something like annotate to make this one query, but
that doesn't seem to be reasonably possible (yet). Some options:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

    r0e2426b r429e162  
    542542    for group_update in group_updates:
    543543        group = group_update.group
    544         num_confirms = len(people_confirmations.filter(groups=group))
     544        num_confirms = people_confirmations.filter(groups=group).count()
    545545        problems = []
    546546
Note: See TracChangeset for help on using the changeset viewer.