kopia lustrzana https://github.com/wagtail/wagtail
Fix crash when WorkflowState.current_task_state is null
rodzic
86be460ef5
commit
35cb4ab0f5
|
@ -1765,7 +1765,7 @@ class Page(MultiTableCopyMixin, AbstractPage, index.Indexed, ClusterableModel, m
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def current_workflow_task_state(self):
|
def current_workflow_task_state(self):
|
||||||
if self.current_workflow_state:
|
if self.current_workflow_state and self.current_workflow_state.current_task_state:
|
||||||
return self.current_workflow_state.current_task_state.specific
|
return self.current_workflow_state.current_task_state.specific
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Ładowanie…
Reference in New Issue