diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2011-04-20 21:00:24 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2011-04-20 21:00:24 +0000 |
| commit | c92e0e47657f8c53673523428011f34ba15be7bb (patch) | |
| tree | ae42ae1df3e0dcd8048d9ed2370755544b560c33 /docs | |
| parent | 8f0f73c7b8b110489a1a127cc47e3cabb0eea646 (diff) | |
Added notes about `select_for_update` to the 1.4 release notes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16059 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.4.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index 9de896d33d..674916175d 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -13,10 +13,21 @@ which are detailed in :doc:`our deprecation plan </internals/deprecation>`. .. _new features: `What's new in Django 1.4`_ .. _backwards incompatible changes: backwards-incompatible-changes-1.4_ - What's new in Django 1.4 ======================== +``SELECT FOR UPDATE`` support +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Django 1.4 now includes a :meth:`QuerySet.select_for_update() +<django.db.models.query.QuerySet.select_for_update>` method which generates a +``SELECT ... FOR UPDATE`` SQL query. This will lock rows until the end of the +transaction, meaning that other transactions cannot modify or delete rows +matched by a ``FOR UPDATE`` query. + +For more details, see the documentation for +:meth:`~django.db.models.query.QuerySet.select_for_update`. + .. _backwards-incompatible-changes-1.4: Backwards incompatible changes in 1.4 |
