Verbose_name_plural unexpectedly in model?

I made some models of the future application, and after adding verbose_name and verbose_name_plural to each record in the working model, to make it “beautiful”, I found that when checking the time, Django does not do like this, so he says:

  File "/home/andor/Documentos/desarrollo/grundymanage/../grundymanage/concursantes/models.py", line 4, in <module>
    class Concursante(models.Model):
  File "/home/andor/Documentos/desarrollo/grundymanage/../grundymanage/concursantes/models.py", line 7, in Concursante
    nombre_artistico = models.CharField(verbose_name='Nombre Artístico', verbose_name_plural='Nombres Artísticos', max_length=50)
TypeError: __init__() got an unexpected keyword argument 'verbose_name_plural'

My model starts as follows:

# -*- encoding: utf-8 -*-
from django.db import models

class Concursante(models.Model):
    nombre = models.CharField(verbose_name='Nombre', max_length=30)
    apellidos = models.CharField(verbose_name='Apellidos', max_length=50)
    nombre_artistico = models.CharField(verbose_name='Nombre Artístico', verbose_name_plural='Nombres Artísticos', max_length=50)

Why did "he" not expect a verbose verbose name there? Can't live with verbose_name?

FYI, these are my software versions:

  • Ubuntu 8.04
  • Python 2.5.2
  • Django "1" "0" "final"
  • Django ubuntu package version "1.0-1ubuntu1"
+3
source share
2 answers

, verbose_name_plural . - . , " " ( Django , ), .

doc: http://docs.djangoproject.com/en/dev/topics/db/models/#id3

+5

verbose_name_plural. , . . Django : verbose_name.

(, --), verbose_name. , , .

Django .

+5

Source: https://habr.com/ru/post/1705257/