schemas/workflow.py
branchstable
changeset 3961 d1cbf77db999
parent 3628 440931181322
child 3966 f742c525b7b4
--- a/schemas/workflow.py	Wed Dec 02 11:04:40 2009 +0100
+++ b/schemas/workflow.py	Wed Dec 02 11:53:25 2009 +0100
@@ -59,7 +59,7 @@
                                          description=_('allowed transitions from this state'))
     state_of = SubjectRelation('Workflow', cardinality='1*', composite='object',
                                description=_('workflow to which this state belongs'),
-                               constraints=[RQLUniqueConstraint('S name N, Y state_of O, Y name N')])
+                               constraints=[RQLUniqueConstraint('S name N, Y state_of O, Y name N', 'Y')])
 
 
 class BaseTransition(EntityType):
@@ -83,7 +83,7 @@
                                                   'allowed to pass this transition'))
     transition_of = SubjectRelation('Workflow', cardinality='1*', composite='object',
                                     description=_('workflow to which this transition belongs'),
-                                    constraints=[RQLUniqueConstraint('S name N, Y transition_of O, Y name N')])
+                                    constraints=[RQLUniqueConstraint('S name N, Y transition_of O, Y name N', 'Y')])
 
 
 class Transition(BaseTransition):