Make Condition and ConditionSet serializable in JSONField.

Review Request #8351 — Created Aug. 26, 2016 and submitted — Latest diff uploaded

Information

Djblets
release-0.10.x
b484607...

Reviewers

Condition and ConditionSet now define a to_json() method (an alias
of serialize()), allowing them to be serialized in a JSONField
(or anywhere else where a DjbletsJSONEncoder is used).

Tested saving a ConditionSet to a JSONField without having to
resort to manually serializing during save.