唯一索引可以为空,主键索引是在唯一索引的基础上不能为空
在模板上不需要加()
models.tb_name.objects.raw(sql语句)
strftime("%Y-%m",creat_time) 数据库方法:时间转换