django Models 常用的字段和参数

1.字段

CharField

IntegerField

floatField

DateTimeField

DateField

DecimalField

2.参数

  null 

  default

  choices

  primary_Key

  db_index

  unique

  max_length

 

猜你喜欢

转载自www.cnblogs.com/xiaohuyi/p/10282380.html