From 35cb4ab0f5849fa46fc434ce36b641d60c63dd16 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Wed, 12 Feb 2020 16:17:51 +0000 Subject: [PATCH] Fix crash when WorkflowState.current_task_state is null --- wagtail/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/core/models.py b/wagtail/core/models.py index cb2e9e41ff..b4efc67842 100644 --- a/wagtail/core/models.py +++ b/wagtail/core/models.py @@ -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