It looks like other people who encounter this end up going with extra,
so I think that's the path that I'll take too:
http://www.djangofoo.com/182/filter-annotate-count
Casey
On 05/25/2011 08:34 PM, Sean McArthur wrote:
I would be very interested to know if there is a way to do this using
Dja
I would be very interested to know if there is a way to do this using
Django's Aggregation API. For now, the only solution I can come up with is
having to use a fat .extra() call.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
I am trying to figure out how to annotate with a count that is filtered.
Here is a quick example of the situation and what I'm looking for:
models.py:
class A(models.Model):
name = models.CharField(...)
...
class B(models.Model):
date = models.DateField(null=False)
...
---
3 matches
Mail list logo