entities/wfobjs.py
branch3.5
changeset 2943 77622caef9bd
parent 2920 64322aa83a1d
child 2944 3bd49b70f7f9
--- a/entities/wfobjs.py	Fri Aug 21 08:31:25 2009 +0200
+++ b/entities/wfobjs.py	Fri Aug 21 08:42:17 2009 +0200
@@ -29,7 +29,8 @@
         """return True if this workflow is the default workflow for the given
         entity type
         """
-        return any(et for et in self.default_workflow_of if et.name == etype)
+        return any(et for et in self.reverse_default_workflow
+                   if et.name == etype)
 
     def after_deletion_path(self):
         """return (path, parameters) which should be used as redirect