0
我有以下型號:我可以在manyToMany自動生成的模型中指定詳細名稱嗎?
class Doctor(models.Model):
#some attributes...
class Meta:
verbose_name = _(u'doctor')
verbose_name_plural = _(u'doctors')
class Patient(models.Model):
#some attributes...
medical_consult = models.ManyToManyField(Doctor)
class Meta:
verbose_name = _('patient')
verbose_name_plural = _('patients')
有什麼辦法來設置verbose_name
當我使用ManyToManyField自動創建模型Patient_doctor
?