简单方法: models.py 复制代码 代码如下: class IceCreamBar(models.Model): title = models.CharField(max_length=200,db_index=True,verbose_name=”名称”) shell = models.CharField(max_length=100,verbose_name=’外皮’) filling = models.CharField(max_length=100,verbose_name=’内含’) has_stick = mod