Replace _constraints with validate in ModelStorage and improve user messages.

issue2616
review371002
This commit is contained in:
Albert Cervera i Areny committed 2013-03-07 16:54:31 +01:00
1 parent b41e65ba7b
commit 37af63fd83
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ class Move:
cls._sql_constraints += [
('check_anglo_saxon_quantity',
'CHECK(quantity >= anglo_saxon_quantity)',
'Anglo-Saxon quantity can not be greater than quantity!'),
'Anglo-Saxon quantity can not be greater than quantity.'),
]
@staticmethod