diff --git a/facho/model/fields/__init__.py b/facho/model/fields/__init__.py index c3f59a3..df6d582 100644 --- a/facho/model/fields/__init__.py +++ b/facho/model/fields/__init__.py @@ -1,11 +1,10 @@ from .attribute import Attribute from .many2one import Many2One -from .model import Model from .function import Function from .virtual import Virtual from .field import Field -__all__ = [Attribute, Many2One, Model, Virtual, Field] +__all__ = [Attribute, Many2One, Virtual, Field] def on_change(fields): from functools import wraps diff --git a/facho/model/fields/function.py b/facho/model/fields/function.py index 1da5e52..2713d35 100644 --- a/facho/model/fields/function.py +++ b/facho/model/fields/function.py @@ -1,5 +1,4 @@ from .field import Field -from .model import Model class Function(Field): """ diff --git a/facho/model/fields/model.py b/facho/model/fields/model.py deleted file mode 100644 index ad48212..0000000 --- a/facho/model/fields/model.py +++ /dev/null @@ -1,19 +0,0 @@ -from .field import Field -import warnings - -class Model(Field): - def __init__(self, model, name=None, namespace=None): - self.model = model - self.namespace = namespace - self.field_name = name - warnings.warn('deprecated use Many2One instead') - - def __get__(self, inst, cls): - if inst is None: - return self - assert self.name is not None - return self._create_model(inst, name=self.field_name) - - def __set__(self, inst, value): - obj = self._create_model(inst, name=self.field_name) - obj._set_content(value)