mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Retrieve tasks in order they are on the workflow
This commit is contained in:
parent
35cb4ab0f5
commit
623ea70ffc
@ -2699,7 +2699,7 @@ class Workflow(ClusterableModel):
|
||||
|
||||
@property
|
||||
def tasks(self):
|
||||
return Task.objects.filter(workflow_tasks__workflow=self)
|
||||
return Task.objects.filter(workflow_tasks__workflow=self).order_by('workflow_tasks__sort_order')
|
||||
|
||||
@transaction.atomic
|
||||
def start(self, page, user):
|
||||
|
Loading…
Reference in New Issue
Block a user