Skip to content

Commit

Permalink
fix: allow for custom states in status field
Browse files Browse the repository at this point in the history
From celery#366 (comment)

Thanks to @cdevacc1 for the idea. I just decided to write up the PR as
it only takes a couple of minutes. This should resolve the bug where
custom states are not shown at all in the admin panel.
  • Loading branch information
ericswpark committed Sep 3, 2023
1 parent 4325e45 commit e44e862
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion django_celery_results/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class TaskResult(models.Model):
'used with the task'))
status = models.CharField(
max_length=50, default=states.PENDING,
choices=TASK_STATE_CHOICES,
verbose_name=_('Task State'),
help_text=_('Current state of the task being run'))
worker = models.CharField(
Expand Down

0 comments on commit e44e862

Please sign in to comment.