Make Condition and ConditionSet serializable in JSONField.
Review Request #8351 — Created Aug. 26, 2016 and submitted — Latest diff uploaded
Condition
andConditionSet
now define ato_json()
method (an alias
ofserialize()
), allowing them to be serialized in aJSONField
(or anywhere else where aDjbletsJSONEncoder
is used).
Tested saving a
ConditionSet
to aJSONField
without having to
resort to manually serializing during save.