djongo/models/fields.py
def to_python(self, value):
        """
        Overrides Django's default to_python to allow correct
        translation to instance.
        """
        if value is None or isinstance(value, self.model_container):
            return value
        assert isinstance(value, dict)

        instance = make_mdl(self.model_container, value)
        return instance
def to_python(self, value):
        if value is None or isinstance(value, self.model_container):
            return value
        assert isinstance(value, dict)

        instance = make_mdl(self.model_container, value)
        return instance
def to_python ( self , value ) : if value is None or isinstance ( value , self . model_container ) : return value assert isinstance ( value , dict ) instance = make_mdl ( self . model_container , value ) return instance
Overrides Django's default to_python to allow correct
        translation to instance.
Overrides Django s default to_python to allow correct translation to instance .