def to_python(self, value):
        if isinstance(value, dict):
            return self._deserialize_dict(value)
        else:
            return value


# south compatibility
Convert from db-friendly format to originally typed values.
dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py/SerializedDictionaryField.to_python