django-json-rpc icon indicating copy to clipboard operation
django-json-rpc copied to clipboard

Does not serialize Models and QuerySets successfully in Django 1.2

Open micolous opened this issue 15 years ago • 3 comments

I had issues with the library trying to serialise QuerySets and Models. In the case of Models, it tries to serialise one of the internal Django attributes, and fails.

I've written a patch around it -- it's not pretty but seems to do the job.

micolous avatar Sep 09 '10 06:09 micolous

Patch: http://pastebin.com/urChqVny

micolous avatar Sep 09 '10 06:09 micolous

I will review this and include soon, thanks for the patch.

samuraisam avatar Sep 14 '10 22:09 samuraisam

http://www.python.org/doc//current/library/json.html#encoders-and-decoders

russian-developer avatar Jul 02 '11 21:07 russian-developer