Skip to content

Commit

Permalink
Fixed #14165 - Documented that TransactionMiddleware only applies to …
Browse files Browse the repository at this point in the history
…the default database.
  • Loading branch information
timgraham committed Oct 11, 2012
1 parent b5f224e commit 2d1214d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ref/middleware.txt
Expand Up @@ -203,9 +203,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.
Expand Down

0 comments on commit 2d1214d

Please sign in to comment.