Skip to content

Commit

Permalink
Get STATUS_CHOICES from Task when annotating all_tasks_with_status
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoppm committed Jun 12, 2020
1 parent c33be88 commit 3aa76e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail/core/models.py
Expand Up @@ -2964,7 +2964,7 @@ def all_tasks_with_status(self):
)

# Manually annotate status_display
status_choices = dict(self.STATUS_CHOICES)
status_choices = dict(TaskState.STATUS_CHOICES)
for task in tasks:
task.status_display = status_choices.get(task.status, _("Not started"))

Expand Down

0 comments on commit 3aa76e5

Please sign in to comment.