kadi.events.json_field.JSONField#

class kadi.events.json_field.JSONField(*args, **kwargs)#

Bases: django.db.models.TextField

JSONField is a generic textfield that neatly serializes/unserializes JSON objects seamlessly. Main thingy must be a dict object.

to_python(value)#

Convert our string value to JSON after we load it from the DB

get_db_prep_save(value, connection)#

Convert our JSON object to a string before we save

south_field_triple()#

Returns a suitable description of this field for South.