Did you try changing the position of the save point like I mentioned?

-James
On May 13, 2015 9:33 PM, "Simran Singh" <er.simransing...@gmail.com> wrote:

> Hi James,
>
> Thanks for your feedback. I basically want to rollback that query where I
> update the db. Basically I want to rollback all the updates that were made
> during that transaction. Tried out the method of custom Exception as
> suggested by Tom but somehow my bad luck that it is still not working and
> giving error. Lets hope to close this issue soon :(
>
> Regards,
> 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 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/58a21382-40c5-49b5-b79a-06b289bebd5c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/58a21382-40c5-49b5-b79a-06b289bebd5c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2Be%2BciW%2Bc%2BOdhb8RGEzs3WCoiCzWofXzr6wXjqQGjb4i-cPVDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to