Opened 19 years ago

Closed 18 years ago

Last modified 17 years ago

#315 closed defect (fixed)

verbose_name_plural should be used in admin URLs

Reported by: jbennett@… 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 Adrian Holovaty, 19 years ago

Resolution: wontfix
Status: newclosed

The admin uses module_name for URLs. You can set module_name manually if you're concerned about your URLs.

verbose_name_plural might have spaces in it, so it's not a good candidate for use in URLs.

comment:2 by minholi, 19 years ago

Resolution: wontfix
Status: closedreopened

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 Adrian Holovaty, 18 years ago

Resolution: fixed
Status: reopenedclosed

This is fixed in magic-removal.

Note: See TracTickets for help on using tickets.
Back to Top