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 authored and zerolab committed Jun 26, 2020
1 parent b5337aa commit 61dd498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail/core/models.py
Expand Up @@ -2961,7 +2961,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 61dd498

Please sign in to comment.