On Wed, May 13, 2015 at 9:37 AM, Simran Singh
<er.simransing...@gmail.com> wrote:
> Tom, basically I want to discard everything that is stored in
> transaction.savepoint. As per my current case, it is getting committed no
> matter where the flow goes.

Yes, so you don't want savepoints. Savepoints are for rolling back a
*subset* of the uncommitted transaction, and you want to rollback the
whole transaction, which simplifies things.

Did you read the code I posted? Wrap a block in atomic() and raise an
exception if you want it to be rolled back, handling the exception
outside of the atomic().

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1KMsc6Y-Fw2%2BbnoSR6-rsfv%2BKboVsd9stH-1QDwBN61nQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to