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
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
2 matches
Mail list logo