Commit 08b76817 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix migration of some Constraints.

parent 4acbcfe9
......@@ -89,3 +89,4 @@ class AccountTypeConstraint(ConstraintMixin):
break
return error_list
_message_id_tuple = ('message_inconsistent_account_type',)
......@@ -49,9 +49,6 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint):
property_sheets = PropertyExistenceConstraint.property_sheets + \
(PropertySheet.AttributeUnicityConstraint,)
_message_id_tuple = ('message_invalid_attribute_unicity',)
def _checkConsistency(self, obj, fixit=0):
"""Check the object's consistency.
We will make sure that each non None constraint_definition is
......@@ -83,3 +80,5 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint):
return error_list
_message_id_tuple = PropertyExistenceConstraint._message_id_tuple + \
('message_invalid_attribute_unicity',)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment