Commit 653a3a4e authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Merge pull request #3763 from dcramer/patch-2

Correct scoping of savepoint example
parents 07728a2c 27f68f86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -492,8 +492,8 @@ you can roll back the single offending operation, rather than the entire
transaction. For example::

    a.save() # Succeeds, and never undone by savepoint rollback
    try:
    sid = transaction.savepoint()
    try:
        b.save() # Could throw exception
        transaction.savepoint_commit(sid)
    except IntegrityError: