From e44e862201c932d279be68cc3367bd29d9936d9d Mon Sep 17 00:00:00 2001 From: Eric Park Date: Sun, 3 Sep 2023 19:30:09 -0400 Subject: [PATCH] fix: allow for custom states in status field From https://github.com/celery/django-celery-results/pull/366#issuecomment-1586237389 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. --- django_celery_results/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/django_celery_results/models.py b/django_celery_results/models.py index d30abb78..475b99ac 100644 --- a/django_celery_results/models.py +++ b/django_celery_results/models.py @@ -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(