From 54987dd0d1da49d2d149cc236153691c5d2996b0 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 11 Feb 2011 18:24:24 +0000 Subject: [PATCH] [1.2.X] 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. Backport of [15489]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15490 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/db/sql.txt | 2 ++ 1 file changed, 2 insertions(+) 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: