Re: JSON serialization of related records.

2009-09-03 Thread Amir Habibi
Thanks Mike. The issue is the inflexible handling of fk entries of a model by the django serializer or more accurately PythonSerializer. The behavior is inherited by json and xml serializers the same. I've eventually resorted to rewriting the whole serialization to make it a better fit for my aja

Re: JSON serialization of related records.

2009-09-01 Thread Mike Ramirez
On Tuesday 01 September 2009 12:29:56 pm Amir Habibi wrote: > How can I serialize a Queryset along with the related records. For > example, in Poll and Choice case, I need each poll to have the choices > encoded in json format. > > Thanks > you'll want to look at the docs on serialization [1], it

JSON serialization of related records.

2009-09-01 Thread Amir Habibi
How can I serialize a Queryset along with the related records. For example, in Poll and Choice case, I need each poll to have the choices encoded in json format. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups