Commits

Kai Diefenbach committed 4c8f91a

Bugfix: pass the instance to set_workflow_for_object; issue #5

Comments (0)

Files changed (1)

workflows/__init__.py

         obj
             The object which gets the passed workflow.
         """
-        return workflows.utils.set_workflow_for_object(workflow)
+        return workflows.utils.set_workflow_for_object(self, workflow)
 
     def get_state(self):
         """Returns the current workflow state of the object.