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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -