Fix crash when WorkflowState.current_task_state is null

pull/6257/head
Karl Hobley 2020-02-12 16:17:51 +00:00 zatwierdzone przez Matt Westcott
rodzic 86be460ef5
commit 35cb4ab0f5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1765,7 +1765,7 @@ class Page(MultiTableCopyMixin, AbstractPage, index.Indexed, ClusterableModel, m
@property
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
@property