mirror of
https://github.com/django/django.git
synced 2025-07-25 22:24:16 +00:00
Fixed #17168 - Noted TransactionMiddleware only works with "default" database alias.
Thanks codeinthehole for the draft patch.
This commit is contained in:
parent
db87016b1a
commit
5d81ad1af1
1 changed files with 7 additions and 0 deletions
|
@ -56,6 +56,13 @@ database cursor (which is mapped to its own database connection internally).
|
||||||
|
|
||||||
.. _transaction-management-functions:
|
.. _transaction-management-functions:
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
The ``TransactionMiddleware`` only affects the database aliased
|
||||||
|
as "default" within your :setting:`DATABASES` setting. If you are using
|
||||||
|
multiple databases and want transaction control over databases other than
|
||||||
|
"default", you will need to write your own transaction middleware.
|
||||||
|
|
||||||
Controlling transaction management in views
|
Controlling transaction management in views
|
||||||
===========================================
|
===========================================
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue