#36120: Calling .update() on the virtual "pk" field for composite primary keys
raises AttributeError
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: (none)
Type: Bug | Status: new
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* stage: Unreviewed => Accepted
Comment:
Likely easier to raise here than to adapt `SQLUpdateCompiler`. A good spot
to intercept composite primary key assignment is likely
`UpdateQuery.add_update_values` which already intercepts relational and
many-to-many field updates.
--
Ticket URL: <https://code.djangoproject.com/ticket/36120#comment:3>
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 visit
https://groups.google.com/d/msgid/django-updates/0107019486b02c57-3e599aed-392d-4980-9326-e004a93d093e-000000%40eu-central-1.amazonses.com.