How to turn off a django model field validation?

后端 未结 0 1837
挽巷
挽巷 2021-01-11 16:43

I have a model as below:

from cities.models import City

class Post(models.Model):
          location = models.ForeignKey(City, default=\'\', blank=True, null         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题