django orm 笔记

常用filter 选项
  __isnull 可以判断 为空字段
  __lenght 判断char 长度
select_for_update() 可以确保数据一致性 数据库加锁

posted @ 2021-09-27 17:45  熵殇  阅读(22)  评论(0编辑  收藏  举报