Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nodes validation to the admin site #1818

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

rafalp
Copy link
Owner

@rafalp rafalp commented Sep 24, 2024

This PR adds admin nodes validation to the AdminSite class. This validation produces much more descriptive error messages when nodes tree has errors:

Zrzut ekranu 2024-09-24 o 21 16 05

Fixes #1817

@rafalp rafalp added area: backend This issue involves Python, Django or dependency (eg. database) feature: admin Affects admin control panel labels Sep 24, 2024
@rafalp rafalp added this to the Next feature release milestone Sep 24, 2024
@rafalp rafalp self-assigned this Sep 24, 2024
@rafalp rafalp merged commit 0fd11fc into main Sep 24, 2024
1 check failed
@rafalp rafalp deleted the fix-1817-better-admin-hierarchy-error branch September 24, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend This issue involves Python, Django or dependency (eg. database) feature: admin Affects admin control panel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Admin hierarchy is invalid or too complex to resolve" message is uninformative when tree is broken
1 participant