Hi Tom,

If you see then in *if *block, I am creating my savepoint. At any point of 
time, if the condition is not met and control goes to *else* block then I 
want to rollback all the changes that are saved in transaction and redirect 
it to some other page and not commit anything to db. I am able to redirect 
the flow to some template but all the transactions are being committed and 
rollback functionality is not working.

Thanks,
Simran

On Monday, May 11, 2015 at 4:27:50 PM UTC+5:30, Simran Singh wrote:
>
> I am really new to Django and I am using Django 1.8. Many of the 
> manual_transaction features have been depreciated in this. I have used 
> *@transaction.atomic(None, 
> True)* to pack the transaction and rollback the updates if at any point 
> the condition is not met. 
> I tried to store the transaction in savepoint and used  
> *savepoint_rollback* or *savepoint_commit* as per the condition. But I am 
> having no luck here. No matter where the control goes but as soon as atomic 
> block ends, it is committing the changes in mysql db.  
> Any kind of help or leads would be highly appreciated.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/771f5df9-8878-44c8-82f8-05ed53fbdca0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to