def value_type(self): if isinstance(self._target_type, basestring): t = self._target_type from base import get_model_from_key self._target_type = get_model_from_key(self._target_type) if self._target_type is None: raise ValueError("Unknown Redjango class %s" % t) return self._target_type
def value_type(self): if isinstance(self._target_type, basestring): t = self._target_type from base import get_model_from_key self._target_type = get_model_from_key(self._target_type) if self._target_type is None: raise ValueError("Unknown Redisco class %s" % t) return self._target_type
def value_type(self): if isinstance(self._target_type, string_types): self._target_type = partial(self._target_type, 'utf-8') from base import get_model_from_key self._target_type = get_model_from_key(self._target_type) if self._target_type is None: raise ValueError("Unknown Redisco class %s" % t) return self._target_type
def ref_klass(self): """ Reference the object return: the object of self's Reference """ if self.ref: from base import get_model_from_key return get_model_from_key(self.ref)