Replace a magic string

pull/6257/head
Karl Hobley 2020-03-10 11:16:55 +00:00 zatwierdzone przez Matt Westcott
rodzic 2d3e3652ce
commit 92a3423350
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: