Code

Opened 9 years ago

Closed 8 years ago

Last modified 7 years ago

#315 closed defect (fixed)

verbose_name_plural should be used in admin URLs

Reported by: jbennett@… Owned by: adrian
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: UI/UX:

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.

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

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 Changed 8 years ago by minholi

  • Resolution wontfix deleted
  • Status changed from closed to 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 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from reopened to closed

This is fixed in magic-removal.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.