def from_db_value(self, value, expression, connection, context): if value is None: return value return shape(json.loads(value))