Commit d237aaa9 authored by David Cramer's avatar David Cramer Committed by Tim Graham
Browse files

[1.6.x] Corrected scoping of savepoint example

Backport of 27f68f86 from master
parent 0e362626
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -522,8 +522,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: