summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2017-04-11 18:52:53 +0300
committerTim Graham <timograham@gmail.com>2017-04-11 11:52:53 -0400
commit2a6b4e65214ff60ee50b14fb33916a2b58e9fcbe (patch)
tree1e44bf27bee8c10280a16b35cda3dbaaf6a6368f /docs/ref/models
parent5dbf1c4b23cda915369f4895be293369575238d0 (diff)
Updated docs after changing select_for_update() to raise NotSupportedError.
Follow up to 054a44d6f0f75395bd02a21e31ea904a24750a2b.
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/querysets.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index e98f0202ce..867ce47ce3 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -1640,8 +1640,8 @@ backends support ``select_for_update()``. However, MySQL doesn't support the
``nowait`` and ``skip_locked`` arguments.
Passing ``nowait=True`` or ``skip_locked=True`` to ``select_for_update()``
-using database backends that do not support these options, such as MySQL, will
-cause a :exc:`~django.db.DatabaseError` to be raised. This prevents code from
+using database backends that do not support these options, such as MySQL,
+raises a :exc:`~django.db.NotSupportedError`. This prevents code from
unexpectedly blocking.
Evaluating a queryset with ``select_for_update()`` in autocommit mode on