use absolute import when creating default workflows (#36515)
This commit is contained in:
parent
9dd19f2f05
commit
d6bce19689
|
@ -78,7 +78,7 @@ class CardDef(FormDef):
|
|||
@classmethod
|
||||
def get_default_workflow(cls):
|
||||
from wcs.workflows import EditableWorkflowStatusItem, ChoiceWorkflowStatusItem
|
||||
import wf.remove
|
||||
from wcs.wf.remove import RemoveWorkflowStatusItem
|
||||
workflow = Workflow(name=_('Default (cards)'))
|
||||
workflow.id = '_carddef_default'
|
||||
workflow.roles = {
|
||||
|
@ -105,7 +105,7 @@ class CardDef(FormDef):
|
|||
action_delete.parent = status
|
||||
status.items.append(action_delete)
|
||||
|
||||
remove = wf.remove.RemoveWorkflowStatusItem()
|
||||
remove = RemoveWorkflowStatusItem()
|
||||
remove.id = '_remove'
|
||||
remove.parent = deleted_status
|
||||
deleted_status.items.append(remove)
|
||||
|
|
|
@ -721,8 +721,8 @@ class Workflow(StorableObject):
|
|||
commentable.id = '_commentable'
|
||||
commentable.by = ['_submitter', '_receiver']
|
||||
|
||||
import wf.jump
|
||||
jump_to_new = wf.jump.JumpWorkflowStatusItem()
|
||||
from wcs.wf.jump import JumpWorkflowStatusItem
|
||||
jump_to_new = JumpWorkflowStatusItem()
|
||||
jump_to_new.id = '_jump_to_new'
|
||||
jump_to_new.status = new_status.id
|
||||
jump_to_new.parent = just_submitted_status
|
||||
|
|
Loading…
Reference in New Issue