mirror of
https://github.com/django/django.git
synced 2025-05-08 07:56:30 +00:00
[1.4.X] Fixed #14165 - Documented that TransactionMiddleware only applies to the default database.
Backport of 938ee7cd36 from master
This commit is contained in:
parent
3ac70a5907
commit
cf17d5e267
@ -206,9 +206,9 @@ Transaction middleware
|
|||||||
|
|
||||||
.. class:: TransactionMiddleware
|
.. class:: TransactionMiddleware
|
||||||
|
|
||||||
Binds commit and rollback to the request/response phase. If a view function
|
Binds commit and rollback of the default database to the request/response
|
||||||
runs successfully, a commit is done. If it fails with an exception, a rollback
|
phase. If a view function runs successfully, a commit is done. If it fails with
|
||||||
is done.
|
an exception, a rollback is done.
|
||||||
|
|
||||||
The order of this middleware in the stack is important: middleware modules
|
The order of this middleware in the stack is important: middleware modules
|
||||||
running outside of it run with commit-on-save - the default Django behavior.
|
running outside of it run with commit-on-save - the default Django behavior.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user