浏览代码

Fixed #14165 - Documented that TransactionMiddleware only applies to the default database.

Tim Graham 12 年之前
父节点
当前提交
2d1214d92a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docs/ref/middleware.txt

+ 3 - 3
docs/ref/middleware.txt

@@ -203,9 +203,9 @@ Transaction middleware
 
 .. class:: TransactionMiddleware
 
-Binds commit and rollback to the request/response phase. If a view function
-runs successfully, a commit is done. If it fails with an exception, a rollback
-is done.
+Binds commit and rollback of the default database to the request/response
+phase. If a view function runs successfully, a commit is done. If it fails with
+an exception, a rollback is done.
 
 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.