Commit a89e76d1 authored by Tim Graham's avatar Tim Graham
Browse files

[1.4.X] Fixed #17168 - Noted TransactionMiddleware only works with "default" database alias.

Thanks codeinthehole for the draft patch.

Backport of 5d81ad1a from master
parent d92c38a2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -56,6 +56,13 @@ database cursor (which is mapped to its own database connection internally).

.. _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
===========================================