首页 > 技术文章 > django orm 数据库动态字段写法

jxfy 2020-02-16 10:13 原文

models.wwsearch.objects.create(ww=ww,**{db:wwtime})

db 为变量名,动态变量字段

wwtime 为修改值

推荐阅读