From c1cf01ed097a8094ab6821700a892e384cb2604d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 1 Aug 2008 11:23:53 +0200 Subject: [PATCH] Fix unique constraint on Model to use model field instead of name --- trytond/ir/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/ir/model.py b/trytond/ir/model.py index a23a695506..17ab71cb20 100644 --- a/trytond/ir/model.py +++ b/trytond/ir/model.py @@ -20,8 +20,8 @@ class Model(OSV): def __init__(self): super(Model, self).__init__() self._sql_constraints += [ - ('name_uniq', 'UNIQUE(name)', - 'The name of model must be unique!'), + ('model_uniq', 'UNIQUE(model)', + 'The model must be unique!'), ] Model()