

def get_prep_value(self, value):
    ' Convert to query-friendly format. '
    if (not isinstance(value, dict)):
        return value
    return self._serialize_dict(value)

dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py SerializedDictionaryField.get_prep_value/original