def get_prep_value(self, value):
        if not isinstance(value, dict):  # Handle values from hremove
            return value
        return self._serialize_dict(value)
Convert to query-friendly format.
dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py/SerializedDictionaryField.get_prep_value