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

css - Text drops down with smaller window -

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

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -