Django admin模型名称“s”

时间:2017-09-27 07:44:21

标签: python django django-models django-forms django-admin

class Customer(BaseModel):
    Name = models.CharField(max_length=250, verbose_name="İsim")
    Surname = models.CharField(max_length=250, verbose_name="Soyisim")
    Email = models.EmailField(max_length=70, blank=True, null=True, unique=True,verbose_name="E-Mail")
    Adress = models.CharField(max_length=600, verbose_name="Adres")
    FaxNumber = models.CharField(max_length=600, verbose_name="Fax Numarası")

    class meta:
        verbose_name = "Customer"

我有一个模型,但这个模型名称在django管理面板中显示为“s”字符picture

1 个答案:

答案 0 :(得分:0)

在标题案例中将内部类名更改为Meta。它应该工作。