Re: How can you include annotated results in a serialized QuerySet

2010-05-21 Thread ab3
Ok, I will use values() on the qs as an workaround for the problem. On May 21, 8:02 am, Russell Keith-Magee wrote: > On Fri, May 21, 2010 at 9:41 AM, Werner wrote: > > Hello, > > > How can you include annotated results in a serialized QuerySet? > > > I have this serialized query: > > serializers

Re: How can you include annotated results in a serialized QuerySet

2010-05-20 Thread Russell Keith-Magee
On Fri, May 21, 2010 at 9:41 AM, Werner wrote: > Hello, > > How can you include annotated results in a serialized QuerySet? > > I have this serialized query: > serializers.serialize('json', > Song.objects.filter(is_playing=False).annotate(nr_votes=Count('votes')).order_by('-nr_votes')) > > Howeve