From eece88f0d2e77960a29194d80cc02916f95e2970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 4 Mar 2008 11:50:48 +0100 Subject: [PATCH] New _constraints definition --- company.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/company.py b/company.py index 098e126ebb..16ed305a97 100644 --- a/company.py +++ b/company.py @@ -36,8 +36,8 @@ class User(OSV): def __init__(self): super(User, self).__init__() - self._context_fields = self._context_fields + ['company'] - self._constraints = self._constraints + [ + self._context_fields += ['company'] + self._constraints += [ ('check_company', 'Error! You can not set a company that is not ' \ 'a child of your main company.', ['company']),