Opened 11 years ago
Last modified 11 years ago
#22070 closed Bug
Admin index shows mixed lowercase and capitalized app names when using contrib apps and old-style apps — at Initial Version
Reported by: | Ben Davis | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Release blocker | Keywords: | admin app-loading |
Cc: | Ben Davis, jenkinsbr2 | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
The base AppConfig
class uses
self.label.title()
for verbose_name if verbose_name is not supplied. The new AppConfigs in
django.contrib
use lowercase verbose names. This causes the admin index to look a bit sloppy when old-style apps are capitalized while new-style apps are all lowercase.
In my opinion, one of the following changes should be made:
- All contrib apps should follow the convention for verbose_names used by the default
AppConfig
- The default
AppConfig
should follow the same convention for verbose name as the contrib apps
- The admin template should force all app names to use the same title convention (eg,
{% verbose_name|title %}
)
I'm in favor of any of these options -- the main goal here is consistency.
Note:
See TracTickets
for help on using tickets.