#29974: Bulk update does not support non-truthy primary keys
-------------------------------------+-------------------------------------
Reporter: Tom | Owner: nobody
Forbes |
Type: Bug | Status: new
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
Currently bulk_update checks the `bool()` of each primary key given to the
method. This will fail if the primary key is `0` (or another type that
overrides `__bool__` to return False). What I should have done is made the
check explicitly check for `None`.
--
Ticket URL: <https://code.djangoproject.com/ticket/29974>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/046.cd77821d9e1d011766af8f4ae9578ebc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.