samuraisam / django-json-rpc

JSON-RPC Implementation for Django
MIT License
286 stars 83 forks source link

Does not serialize Models and QuerySets successfully in Django 1.2 #22

Open micolous opened 14 years ago

micolous commented 14 years ago

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 commented 14 years ago

Patch: http://pastebin.com/urChqVny

samuraisam commented 14 years ago

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

russian-developer commented 13 years ago

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