Documentation fixes for the select_for_update change.

Refs #22343; thanks Tim Graham for the fixes.
This commit is contained in:
Shai Berger 2014-04-10 03:40:33 +03:00
parent f095356ba2
commit 59b1d3098f
3 changed files with 18 additions and 19 deletions

View file

@ -1365,7 +1365,7 @@ do not support ``nowait``, such as MySQL, will cause a
:exc:`~django.db.DatabaseError` to be raised. This is in order to prevent code
unexpectedly blocking.
Executing a queryset with ``select_for_update`` in autocommit mode is
Evaluating a queryset with ``select_for_update`` in autocommit mode is
an error because the rows are then not locked. If allowed, this would
facilitate data corruption, and could easily be caused by calling,
outside of any transaction, code that expects to be run in one.