summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2011-02-11 18:23:55 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2011-02-11 18:23:55 +0000
commitb01cc1bd8935f3b97504029c260f4b75061228c2 (patch)
tree0f79fd29dd044f28b42fbf567136599320846c07
parent0aacecb74c32021bd9ccaee8e9b20b107f5c16ca (diff)
Fixed #15243 -- More clearly document that the transaction functions needs to be called with a using parameter to work with a non-default database. Thanks to Jason Kotenko for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15489 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/topics/db/sql.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/db/sql.txt b/docs/topics/db/sql.txt
index cac9a72530..2698bb0f04 100644
--- a/docs/topics/db/sql.txt
+++ b/docs/topics/db/sql.txt
@@ -226,6 +226,8 @@ alias::
from django.db import connections
cursor = connections['my_db_alias'].cursor()
+ # Your code here...
+ transaction.commit_unless_managed(using='my_db_alias')
.. _transactions-and-raw-sql: