Re:Lessons learned defying Joel Spolsky with Django
by subleq on Saturday April 27, 2013 @04:32PM
(#5618951)
You are mistaking about filtering an annotation.
The only reason this doesn't work is because the property annotate creates isn't called `foos` by default. You just need to do this:
and Django now knows to add a `HAVING COUNT(foos) < 10` clause.
[ Parent
| on HN ]
There are no comments on this comment yet.