kopia lustrzana https://github.com/wagtail/wagtail
Replace a magic string
rodzic
2d3e3652ce
commit
92a3423350
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue