﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2705	[patch] Add optional FOR UPDATE clause to QuerySets	Hawkeye	brunobraga	"SQL supports the ""FOR UPDATE"" clause for SELECT statements to allow for pre-emptive locking.  The addition of for_update() for use with get() database operations would greatly enhance Django's transaction support.

As articulated by Michael Radziej on django-users:
{{{
   something = models.Something.get(id=333).for_update() 
   # --> django issues: SELECT * FROM something FOR UPDATE 
   something.count +=1 
   something.save() 
   # --> django issues: UPDATE SOMETHING SET ... 
}}}

Suggesting EITHER:
 * for_update method to extend all 'get'-like statements
 * get_for_update to supplement other 'get'-like statements"	New feature	closed	Database layer (models, ORM)	dev	Normal	fixed		mir@… rajeev.sebastian@… vic@… sebastian@… justin.fiore@… lidaobing@… jdemoor@… wallenfe@… sebastian@… jdi@… liangent@… xmm.dev@… simon@… physicsnick@… meticulos.slacker@… Forest Bond Oldřich Jedlička Alexander Koshelev FTMO Dan Fairs miloslav.pojman@…	Accepted	1	0	0	0		
