From eb6ff8b7a61e2f25e319b369166d2e3d7ef164ec Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Thu, 7 Mar 2013 16:55:46 +0100 Subject: [PATCH] Replace _constraints with validate in ModelStorage and improve user messages. issue2616 review371002 --- service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.py b/service.py index f1de692edf..8a80468359 100644 --- a/service.py +++ b/service.py @@ -93,7 +93,7 @@ class EmployeeCostPrice(ModelSQL, ModelView): super(EmployeeCostPrice, cls).__setup__() cls._sql_constraints = [ ('date_cost_price_uniq', 'UNIQUE(date, cost_price)', - 'A employee can only have one cost price by date!'), + 'A employee can only have one cost price by date.'), ] cls._order.insert(0, ('date', 'DESC'))