Example #1
0
 def field_type(self):
     """
     Returns field type. In case it is not resolved, resolve it.
     """
     # In case if field_type specified by string, we should resolve it
     if isinstance(self._field_type, basestring):
         if self._field_type == "self":
             self._field_type = self._cls
         else:
             self._field_type = model_manager.resolve(self._field_type)
     return self._field_type
Example #2
0
 def field_type(self):
     """
     Returns field type. In case it is not resolved, resolve it.
     """
     # In case if field_type specified by string, we should resolve it
     if isinstance(self._field_type, basestring):
         if self._field_type == "self":
             self._field_type = self._cls
         else:
             self._field_type = model_manager.resolve(self._field_type)
     return self._field_type
Example #3
0
 def inner_type(cls):
     if isinstance(cls._inner_type, basestring):
         # TODO: think about handling "self" qualifier
         cls._inner_type = model_manager.resolve(cls._inner_type)
     # TODO: we can erase property on a first run
     return cls._inner_type
Example #4
0
 def inner_type(cls):
     if isinstance(cls._inner_type, basestring):
         # TODO: think about handling "self" qualifier
         cls._inner_type = model_manager.resolve(cls._inner_type)
     # TODO: we can erase property on a first run
     return cls._inner_type