Monday, November 14, 2016

Re: DatabaseWrapper.needs_rollback and transaction.rollback()

In the real code, we have much more complex code flow where transaction.atomic offers no readability improvement (imo) over commit_manually. (and even if transaction.atomic were an improvement at all call sites, we have lots of code using commit manually which cannot be changed immediately.)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c177b5fd-f09a-4e56-9996-599535ed0041%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment