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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -