diff --git a/proteus/__init__.py b/proteus/__init__.py index 0c174c4304..369a177dce 100644 --- a/proteus/__init__.py +++ b/proteus/__init__.py @@ -10,7 +10,6 @@ import threading import datetime from decimal import Decimal import proteus.config -from proteus.pyson import PYSONDecoder _MODELS = threading.local() @@ -707,6 +706,8 @@ class Model(object): def _on_change(self, name): 'Call on_change for field' + # Import locally to not break installation + from proteus.pyson import PYSONDecoder definition = self._fields[name] if definition.get('on_change'): if isinstance(definition['on_change'], basestring):