Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b01cc1bd8935f3b97504029c260f4b75061228c2 1 parent 0aacecb
@alex alex authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  docs/topics/db/sql.txt
2  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:

0 comments on commit b01cc1b

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