Add support for serializing django Models
Review Request #7821 — Created Dec. 22, 2015 and submitted — Latest diff uploaded
Django Models with a
to_jsonmethod can now be serialized with the
DjbletsJSONEncoder. Theto_jsonmethod should return a
JSON-serializable object (such a dict, list, or string) that will then
be serialized by the encoder. Unit tests have been added to test this
behaviour.
- Ran unit tests.