django in null = True = True and blank the difference!

  • null is for the purposes of the database, if the null = True, indicates that the field database can be empty, is displayed as YES in the Null fields.
  • blank against the form, if blank = True, the front end of the form that you fill in this field when you can not fill, but the database, it has no effect

Guess you like

Origin www.cnblogs.com/well-666/p/11530897.html