mirror of https://github.com/django/django.git
Fixed #19442 - Clarified that raw SQL must be committed.
Thanks startup.canada for the suggestion.
This commit is contained in:
parent
7df03268a4
commit
31f49f1396
|
@ -199,7 +199,8 @@ Requirements for transaction handling
|
||||||
Django requires that every transaction that is opened is closed before
|
Django requires that every transaction that is opened is closed before
|
||||||
the completion of a request. If you are using :func:`autocommit` (the
|
the completion of a request. If you are using :func:`autocommit` (the
|
||||||
default commit mode) or :func:`commit_on_success`, this will be done
|
default commit mode) or :func:`commit_on_success`, this will be done
|
||||||
for you automatically. However, if you are manually managing
|
for you automatically (with the exception of :ref:`executing custom SQL
|
||||||
|
<executing-custom-sql>`). However, if you are manually managing
|
||||||
transactions (using the :func:`commit_manually` decorator), you must
|
transactions (using the :func:`commit_manually` decorator), you must
|
||||||
ensure that the transaction is either committed or rolled back before
|
ensure that the transaction is either committed or rolled back before
|
||||||
a request is completed.
|
a request is completed.
|
||||||
|
|
Loading…
Reference in New Issue