Skip to content

ModelAdmin should fail gracefully when provided a non-sense modelclass #570

@maxime-rainville

Description

@maxime-rainville

If you try to manage to access a ModelAdmin with a non-sensical model (e.g.: http://example.com/admin/my-model-admin/EditForm/field/Acme-Web-Some-Models-That-Doesnt-exists) you get some pretty scary 500 error.

This should return either a 400 or 404 error.

image

PRs

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions