What is the difference between Null and Blank in django Model
本问题已经有最佳答案,请猛点这里访问。
1 2 | status = models.IntegerField(choices=list(CAMPAIGN_STATUS), default=CAMPAIGN_STATUS.PAUSE, verbose_name=_("status"), blank=True, null=True) |
空白=真,空白=真有什么区别?
1 2 | status = models.IntegerField(choices=list(CAMPAIGN_STATUS), default=CAMPAIGN_STATUS.PAUSE, verbose_name=_("status"), blank=True, null=True) |
空白=真,空白=真有什么区别?