ex. there are 2 model objects named m1 and m2, I want to save them all
or none,like this:

#start a transaction
m1.save()
m2.save()
# commit or rollback

How could I do that in ONE transaction to ensure saved them all or
none of them?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to