Django 设置非必填字段

region_comments = models.CharField(‘说明’,max_length=250, blank=True)

 

增加参数blank,值为True,不设置则默认为必填