

def get_prep_lookup(self, lookup, value):
    if isinstance(value, dict):
        return utils.serialize_references(value)
    return value

dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py ReferencesField.get_prep_lookup/original