Re: Annotate with a filtered Count

2011-05-26 Thread Casey Greene
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

Re: Annotate with a filtered Count

2011-05-25 Thread Sean McArthur
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

Annotate with a filtered Count

2011-05-24 Thread Casey Greene
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) ... ---