Django 设置非必填字段 2022年5月10日 by 加班不给钱 region_comments = models.CharField(‘说明’,max_length=250, blank=True) 增加参数blank,值为True,不设置则默认为必填