[Django]-Verbose_name_plural unexpected in a model?

5👍

Unfortunately, verbose_name_plural is not an option on the field. It’s a meta option for the model itself. A field has no plural name since, unless it’s a many-to-many relationship (in which case Django will use the plural for the model pointed to by the relationship), there’s only one entity in that field.

Here’s the doc section: http://docs.djangoproject.com/en/dev/topics/db/models/#id3

5👍

There is no verbose_name_plural. It does not make sense to have both singular and plural for one field. They are mutually exclusive. In Django, they share the same name: verbose_name.

If your data represents multiple items (e.g. in a one-to-many relationship) use a plural form in verbose_name. Otherwise, if your data represents a single item, use a singular form.

Verbose name fields in the Django documentation provides some examples.

Leave a comment