Issue #3 resolved

get_workflow_for_object in utils.py don't work

evgecyn
created an issue

I think it's correct: {{{

!python

try: ctype = ContentType.objects.get_for_model(obj) wor = WorkflowObjectRelation.objects.get(content_id=obj.id, content_type=ctype) except WorkflowObjectRelation.DoesNotExist: return None else: return wor.workflow }}}

Comments (1)

  1. Log in to comment