# HG changeset patch # User Sylvain Thénault # Date 1246522853 -7200 # Node ID edf20a9ca376b122b67a71cb1e00db762f8fc00f # Parent 7e85d0169911aac4ebe42ea336975c3da47f4df1 destination_state should be mandatory diff -r 7e85d0169911 -r edf20a9ca376 schemas/workflow.py --- a/schemas/workflow.py Thu Jul 02 10:20:34 2009 +0200 +++ b/schemas/workflow.py Thu Jul 02 10:20:53 2009 +0200 @@ -51,7 +51,7 @@ transition_of = SubjectRelation('CWEType', cardinality='+*', description=_('entity types which may use this transition'), constraints=[RQLConstraint('O final FALSE')]) - destination_state = SubjectRelation('State', cardinality='?*', + destination_state = SubjectRelation('State', cardinality='1*', constraints=[RQLConstraint('S transition_of ET, O state_of ET')], description=_('destination state for this transition'))