#36911: Raise an error when GeneratedField provided to fields argument of
bulk_update()
-------------------------------------+-------------------------------------
Reporter: jaffar Khan | Owner: (none)
Type: Bug | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: bulk_update | Triage Stage:
GeneratedField | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):
* resolution: => wontfix
* status: new => closed
* summary:
bulk_update() incorrectly allows updating GeneratedField (silent
failure on SQLite)
=>
Raise an error when GeneratedField provided to fields argument of
bulk_update()
Comment:
Thanks for the ticket, but `bulk_update()` behaves the same as `update()`
here, which has silently skipped GeneratedFields since their introduction.
I also don't see a way to get `OperationalError` on other databases.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36911#comment:2>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.