#315 closed defect (fixed)
verbose_name_plural should be used in admin URLs
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | contrib.admin | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Even when verbose_name_plural is defined for a model, the URLs in the admin area will pluralize it by just tacking on an 's'. For example, in a model 'Entry' with verbose_name_plural set to 'entries', the admin URLs will still contain 'entrys'. Django should respect the setting for verbose_name_plural in this case.
Change History (3)
comment:1 by , 20 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
comment:2 by , 20 years ago
| Resolution: | wontfix |
|---|---|
| Status: | closed → reopened |
I was noticed that the urls on admin are wrong on some cases. Urls with spaces could use "_" in place of spaces and it'll work fine.
comment:3 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
This is fixed in magic-removal.
Note:
See TracTickets
for help on using tickets.
The admin uses
module_namefor URLs. You can setmodule_namemanually if you're concerned about your URLs.verbose_name_pluralmight have spaces in it, so it's not a good candidate for use in URLs.