From 92a3423350919f904945e336a1d519192c677971 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Tue, 10 Mar 2020 11:16:55 +0000 Subject: [PATCH] Replace a magic string --- 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 bb0b1e9326..fbedce28fa 100644 --- a/wagtail/core/models.py +++ b/wagtail/core/models.py @@ -3046,7 +3046,7 @@ class TaskState(MultiTableCopyMixin, models.Model): def cancel(self, user=None, resume=False): """Cancel the task state and update the workflow state. If ``resume`` is set to True, then upon update the workflow state is passed the current task as ``next_task``, causing it to start a new task state on the current task if possible""" - self.status = 'cancelled' + self.status = self.STATUS_CANCELLED self.finished_at = timezone.now() self.save() if resume: