UtilitiesΒΆ
-
plata.utils.
jsonize
(v)[source] Convert the discount configuration into a state in which it can be stored inside the JSON field.
Some information is lost here; f.e. we only store the primary key of model objects, so you have to remember yourself which objects are meant by the primary key values.