Commit 738b7809 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix migration of some Constraints.

parent a526e1d9
...@@ -89,3 +89,4 @@ class AccountTypeConstraint(ConstraintMixin): ...@@ -89,3 +89,4 @@ class AccountTypeConstraint(ConstraintMixin):
break break
return error_list return error_list
_message_id_tuple = ('message_inconsistent_account_type',)
...@@ -49,9 +49,6 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint): ...@@ -49,9 +49,6 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint):
property_sheets = PropertyExistenceConstraint.property_sheets + \ property_sheets = PropertyExistenceConstraint.property_sheets + \
(PropertySheet.AttributeUnicityConstraint,) (PropertySheet.AttributeUnicityConstraint,)
_message_id_tuple = ('message_invalid_attribute_unicity',)
def _checkConsistency(self, obj, fixit=0): def _checkConsistency(self, obj, fixit=0):
"""Check the object's consistency. """Check the object's consistency.
We will make sure that each non None constraint_definition is We will make sure that each non None constraint_definition is
...@@ -83,3 +80,5 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint): ...@@ -83,3 +80,5 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint):
return error_list 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