#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
-------------------------------------+-------------------------------------
Comment (by jaffar Khan):
I manually checked the PostgreSQL behavior on GeneratedField and it does
raise an error, so I initially expected Django to raise an error as well.
I now understand that bulk_update() behaves like update() and silently
skips GeneratedField since their introduction. Thanks for clarification.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36911#comment:3>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.