Just double checking, but are you using a DB that supports
transactions?

On Jul 21, 8:16 am, Parag Shah <adapti...@gmail.com> wrote:
> Hello,
>
> Hello,
>
> I am using TransactionMiddleware to get per request transactions working in
> my Django project. However, it does not seem to be working.
>
> I have a view in which I save an object and when I try to save a related
> object there is an Exception. However, the first object is still saved.
> Please find my code at:http://pastebin.com/f5b498b16
>
> The topic_add(...) method is a view method which results in adding 3 rows
> when a topic is added to a course:
> 1. Add the topic to the courses_topic table
> 2. Add a row to the courses_topic_courses table (because there is a
> many-to-many relationship between Topic and Course)
> 3. Add a row to the courses_topicorder table
>
> I deliberately introduced an error before step 3, yet step 1 and 2 were
> carried out successfully.
>
> Any help is appreciated.
>
> --
> Thanks & Regards
> Parag Shah
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to