Add support for serializing django Models

Review Request #7821 — Created Dec. 22, 2015 and submitted — Latest diff uploaded

Information

Djblets
release-0.9.x

Reviewers

Django Models with a to_json method can now be serialized with the
DjbletsJSONEncoder. The to_json method 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.