How can I update the field value of all objects in a queryset in Django?

后端 未结 0 2005
再見小時候
再見小時候 2020-11-28 16:22

I want to update a field \'volume\' to volume += change_by. I want to increase the existing value of that field for all the objects in the queryset by \'change_by\' variable

相关标签:
回答
  • 消灭零回复
提交回复
热议问题