Skip to content

Commit

Permalink
Get STATUS_CHOICES from Task when annotating all_tasks_with_status (w…
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoppm authored and gasman committed Jul 24, 2020
1 parent 9af49fc commit 6d6d093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail/core/models.py
Expand Up @@ -2984,7 +2984,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 6d6d093

Please sign in to comment.