Closed
Description
Description
If a CMSApp is registered without a name we get an error saying "< is not supported between str and NoneType" which is kind of misleading and not very helpful.
This is in apphook_pool we have a sorted function that sorts registered CMSApps with their names. I was wondering if we could fall back to class name, raise an error with another message or just leave it as it is.
Steps to reproduce
- Register a CMSApp without name
- Runserver
Expected behaviour
Either a fallback to class name or an error message indicating the "ClassName is missing a name"
Actual behaviour
An error saying "< is not supported between str and NoneType" is raised.
This is in apphooks_pool.py line 82:
django-cms/cms/apphook_pool.py
Line 82 in e8d1abf
Where we try to sort the registered apps with their names but one or more has None as name.
Do you want to help fix this issue?
- Yes, I want to help fix this issue and I will join the channel #pr-reviews on the Discord Server to confirm with the community that a PR is welcome.
- No, I only want to report the issue.
Metadata
Metadata
Assignees
Labels
No labels