Re: ValueQuerySet should be serializable into json but isn't

2011-02-14 Thread Russell Keith-Magee
On Tue, Feb 15, 2011 at 1:51 AM, Matteius wrote: > Yes and I am stating that a ValueQuerySet seems related enough to > QuerySet that in Django default behavior should allow them to work > with Django serializers, and I'm not the only one to have assumed it > would!  Using

Re: ValueQuerySet should be serializable into json but isn't

2011-02-14 Thread Jacob Kaplan-Moss
On Mon, Feb 14, 2011 at 11:51 AM, Matteius wrote: > Also I must have filled out the Django EuroCon 2011 Amsterdam form 4 > or 5 times and I still haven't received any E-mails about this. Hey, this (and the rest of your email) is pretty off-topic for this list -- can you

Re: ValueQuerySet should be serializable into json but isn't

2011-02-14 Thread Matteius
Yes and I am stating that a ValueQuerySet seems related enough to QuerySet that in Django default behavior should allow them to work with Django serializers, and I'm not the only one to have assumed it would! Using Django serializes you'll find that a ValueQuerySet is missing attribute _meta when

Re: ValueQuerySet should be serializable into json but isn't

2011-02-13 Thread Russell Keith-Magee
On Mon, Feb 14, 2011 at 9:55 AM, Matteius wrote: > I want to optimize my json call and protect data by doing something > like: > > >        assignments = Assignment.objects.values('id', > 'name').filter(course=enrollment.course) >        payload = serializers.serialize("json",

ValueQuerySet should be serializable into json but isn't

2011-02-13 Thread Matteius
I want to optimize my json call and protect data by doing something like: assignments = Assignment.objects.values('id', 'name').filter(course=enrollment.course) payload = serializers.serialize("json", assignments, ensure_ascii=False) But