Skip to content

ImportError in Django admin when viewing result list that includes a deleted task #126

@tomkins

Description

@tomkins

Fairly easy one to recreate:

The detail view is not impacted - it's just the list view with the following exception:

ImportError at /admin/django_tasks_database/dbtaskresult/
Module "taskrunner.tasks" does not define a "demo_fail" attribute/class

I'm assuming that it's perfectly fine/safe to keep results for tasks that no longer exist.

Will follow up with a PR shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions