1
xiwangzishi 2014-08-05 19:01:51 +08:00 1
可以
``` RootCount.objects.filter(key = n.key).update(success = F('success') + 1,value = value_str,support = True) ``` |
2
wenbinwu 2014-08-05 19:09:53 +08:00
search 'Filters can reference fields on the model' in django document
|
3
wuming OP @xiwangzishi 感谢,已解决
|
4
20150517 2014-08-06 00:27:45 +08:00
关键楼主例子,不是不快捷,是根本不线程安全啊.......
|