Changes between Initial Version and Version 1 of Ticket #36213
- Timestamp:
- Feb 24, 2025, 7:21:01 PM (6 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36213 – Description
initial v1 11 11 This will **silently cause nasty race conditions** since the update is no longer running as a single SQL statement. 12 12 13 Currently the docsfor `QuerySet.update` say:13 Currently the [https://docs.djangoproject.com/en/5.1/ref/models/querysets/#django.db.models.query.QuerySet.update docs] for `QuerySet.update` say: 14 14 15 15 Using update() also prevents a race condition wherein something might change in your database in the short period of time between loading the object and calling save().