Commit 047128fd authored by Arnaud Fontaine's avatar Arnaud Fontaine

Invalid error message returned in CategoryMembershipArity Constraint.

parent 738b7809
...@@ -95,7 +95,7 @@ class CategoryMembershipArityConstraint(ConstraintMixin): ...@@ -95,7 +95,7 @@ class CategoryMembershipArityConstraint(ConstraintMixin):
max_arity=max_arity) max_arity=max_arity)
# Generate an error message # Generate an error message
if len(portal_type_list) == 0: if len(portal_type_list) != 0:
if max_arity is None: if max_arity is None:
message_id = 'message_arity_with_portal_type_too_small' message_id = 'message_arity_with_portal_type_too_small'
else: else:
......
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