Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit b01cc1bd8935f3b97504029c260f4b75061228c2 1 parent 0aacecb
Alex Gaynor authored February 11, 2011

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  docs/topics/db/sql.txt
2  docs/topics/db/sql.txt
@@ -226,6 +226,8 @@ alias::
226 226
 
227 227
     from django.db import connections
228 228
     cursor = connections['my_db_alias'].cursor()
  229
+    # Your code here...
  230
+    transaction.commit_unless_managed(using='my_db_alias')
229 231
 
230 232
 .. _transactions-and-raw-sql:
231 233
 

0 notes on commit b01cc1b

Please sign in to comment.
Something went wrong with that request. Please try again.