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
答案 0 :(得分:0)
在标题案例中将内部类名更改为Meta
。它应该工作。