#33506: bulk_update perform atomic writes against routed db_for_write
-------------------------------------+-------------------------------------
Reporter: Simon | Owner: nobody
Charette |
Type: Bug | Status: assigned
Component: Database | Version: 4.0
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Discovered in https://code.djangoproject.com/ticket/33501#comment:3 but
the summary is that `bulk_update` doesn't set `self._for_write = True`
prior to accessing `self.db` so the latter is actually `db_for_read` and
that includes the `transaction.atomic` block creation.
--
Ticket URL: <https://code.djangoproject.com/ticket/33506>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/052.7780e5c11b45c2826f51e3af5386b69c%40djangoproject.com.