From 8e261096ceb3b776a0fcfd8139dfe315a0fb93c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 26 Jul 2012 11:30:40 +0200 Subject: [PATCH] Import pyson locally to not break installation issue2705 review450001 --- proteus/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proteus/__init__.py b/proteus/__init__.py index 868a8874d4..a1567661d0 100644 --- a/proteus/__init__.py +++ b/proteus/__init__.py @@ -20,7 +20,6 @@ from decimal import Decimal from types import NoneType import proteus.config -from proteus.pyson import PYSONDecoder _MODELS = threading.local() @@ -760,6 +759,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):