mysql - django database delta update -


say want perform following:

"update main_post set votes = votes+1 post_id = xxx"

such delta update needed deal concurrency issues. or there alternative solve concurrency issue?

does django in way support delta update out of box?

* answer * use f object in django

use f object in django. refer docs


Comments