Re: Using .extra after using .annotate is not working

2013-04-16 Thread Venkatraman S
On Tue, Apr 16, 2013 at 1:39 PM, Shabda Raaj wrote: > I am trying to get a field in a queryset which depends on the result > of the annotations. I tried using extra on an annotated queryset, > which doesn't seem to work. > Does something like this work?

Using .extra after using .annotate is not working

2013-04-16 Thread Shabda Raaj
I am trying to get a field in a queryset which depends on the result of the annotations. I tried using extra on an annotated queryset, which doesn't seem to work. Lets say my models looks like this: class Foo(models.Model): name = models.CharField(...) class