kopia lustrzana https://github.com/wagtail/wagtail
Retrieve tasks in order they are on the workflow
rodzic
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):
|
||||
|
|
Ładowanie…
Reference in New Issue