#36785: v6 seems to break the behaviour of transaction.atomic
-------------------------------------+-------------------------------------
Reporter: Paul Zakin | Owner: (none)
Type: Bug | Status: closed
Component: Database layer | Version: 6.0
(models, ORM) |
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Paul Zakin):
Interesting - I bisected and a found the commit
https://github.com/django/django/commit/e1671278e88265e64811657b8b939b5d786295cb
{{{
with transaction.atomic(using=self.db, savepoint=False):
if objs_with_pk and objs_without_pk:
context = transaction.atomic(using=self.db, savepoint=False)
else:
context = nullcontext()
with context:
}}}
I think it is this
--
Ticket URL: <https://code.djangoproject.com/ticket/36785#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019b0021c148-523671cb-23bc-4999-83ab-973f092a3777-000000%40eu-central-1.amazonses.com.