Search code examples
python-3.xdjangocelerydjango-celery

How to remove Celery Task results from Django Admin in production


I am currently working with Django Celery and I have integrated Django celery backend for managing my background tasks. I want to remove Task Results tab from CELERY RESULTS section but could not find any help online.

Image for reference:

enter image description here

Any help would be highly appreciated :)


Solution

  • UPDATE: If you get

    The model TaskResult is not registered

    error import from django_celery_results.admin.

    from django_celery_results.admin import TaskResult, GroupResult
    admin.site.unregister(TaskResult)
    admin.site.unregister(GroupResult)