Opened 6 years ago

Closed 6 years ago

#29207 closed Bug (invalid)

Admin.py ignores a verbose_name_plural

Reported by: Gus Owned by: nobody
Component: contrib.admin Version: 2.0
Severity: Normal Keywords: verbose_name_plural
Cc: Alex Stovbur Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If I set up a:

class LoanStatusAdmin(admin.ModelAdmin):
    list_display = ['title']
    verbose_name = "Loan Status"
    verbose_name_plural = "Loan Status"

Keeps showing me: "Loan statuss"

Django: 2.0.3
Python: 3.6.3

Thanks,
Gus

Change History (3)

in reply to:  description comment:1 by Alex Stovbur, 6 years ago

Replying to Gus

Did you tried to use the Meta class? Something like this:

class LoanStatusAdmin(admin.ModelAdmin):
    list_display = ['title']

    class Meta:
        verbose_name = "Loan Status"
        verbose_name_plural = "Loan Status"
Last edited 6 years ago by Alex Stovbur (previous) (diff)

comment:2 by Alex Stovbur, 6 years ago

Cc: Alex Stovbur added

comment:3 by Claude Paroz, 6 years ago

Resolution: invalid
Status: newclosed

verbose_name and verbose_name_plural should be set on the Meta class of the model itself, not the admin model.

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