[Django] #35736: Incorrect pluralization of model names in the admin panel

10 views
Skip to first unread message

Django

unread,
Sep 5, 2024, 12:30:08 PM9/5/24
to django-...@googlegroups.com
#35736: Incorrect pluralization of model names in the admin panel
-------------------------------------+-------------------------------------
Reporter: Sanjeev | Owner: Sanjeev Holla S
Holla S |
Type: Bug | Status: assigned
Component: | Version: 5.0
Uncategorized |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------------+-------------------------------------
Whenever we register a model, in the admin panel the names of these models
are shown in the plural form. But as of now, a sufix of 's' is being added
to the name of the model. This is not correct in all the cases. So for
example, if the name of the model is `company` then it will be shown as
`Companys` on the admin page. So this can be fixed by having the correct
plural forms of the model names.

So inorder to fix this, when the `verbose_name_plural` is set, we can
derive the correct suffix that needs to be added from the `verbose_name`
(ex: 's', 'es', or 'ies'). Let me know if I am wrong anywhere.
(This is my first ticket, so apologies if anything doesn’t meet the
standards. :) )
--
Ticket URL: <https://code.djangoproject.com/ticket/35736>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 5, 2024, 12:31:23 PM9/5/24
to django-...@googlegroups.com
#35736: Incorrect pluralization of model names in the admin panel
-------------------------------------+-------------------------------------
Reporter: Sanjeev Holla S | Owner: Sanjeev
| Holla S
Type: Bug | Status: assigned
Component: Uncategorized | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Sanjeev Holla S):

* version: 5.0 => dev

--
Ticket URL: <https://code.djangoproject.com/ticket/35736#comment:1>

Django

unread,
Sep 5, 2024, 1:45:21 PM9/5/24
to django-...@googlegroups.com
#35736: Incorrect pluralization of model names in the admin panel
-------------------------------------+-------------------------------------
Reporter: Sanjeev Holla S | Owner: Sanjeev
| Holla S
Type: Bug | Status: assigned
Component: Uncategorized | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Comment (by Claude Paroz):

I'm not sure to understand. When the default pluralization is not right,
then you have to set `verbose_name_plural` in the model definition to
provide the proper plural yourself and all is good, isn't it?
--
Ticket URL: <https://code.djangoproject.com/ticket/35736#comment:2>

Django

unread,
Sep 5, 2024, 2:11:07 PM9/5/24
to django-...@googlegroups.com
#35736: Incorrect pluralization of model names in the admin panel
-------------------------------------+-------------------------------------
Reporter: Sanjeev Holla S | Owner: Sanjeev
| Holla S
Type: Bug | Status: closed
Component: Uncategorized | Version: dev
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* resolution: => invalid
* status: assigned => closed
* ui_ux: 1 => 0

Comment:

Hello Sanjeev, thank you for this ticket. As Claude says, the model name
pluralization can be customized using `verbose_name_plural`.

Your original description is a bit unclear on whether you are just seeking
confirmation about your statements, in which case that would be a user
support request; or if you think there is a bug in Django, in which case I
can't tell from your description what would be the bug.

Because of that, and since the goal of this issue tracker is to track
issues about Django itself, I'll be closing this ticket as invalid
following the
[https://docs.djangoproject.com/en/dev/internals/contributing/triaging-
tickets/#closing-tickets ticket triaging process]. If you find out that
this is indeed a bug in Django, please re-open with the specific details
and please be sure to include a small Django project to reproduce or a
failing test case.

If you are looking for user support, please note that there are several
user support channels available, refer to
TicketClosingReasons/UseSupportChannels for ways to get help.
--
Ticket URL: <https://code.djangoproject.com/ticket/35736#comment:3>
Reply all
Reply to author
Forward
0 new messages