#36360: KeyError calling `update()` after an `annotate()` and a `values()`
-------------------------------------+-------------------------------------
     Reporter:  Gav O'Connor         |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  assigned
    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):

 * owner:  (none) => Simon Charette
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted
 * status:  new => assigned

Comment:

 Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a that isn't fixed by
 543e17c4405dfdac4f18759fc78b190406d14239.

 Not sure why we generate a `SELECT` clause in the first place for `UPDATE`
 queries but I'm pretty sure the issue relates to
 
[https://github.com/django/django/blob/2722cb61ccae84f593e6d2c28814e3c628743994/django/db/models/query.py#L1254
 this line] which naively clear the annotation mask as added to resolve
 #19513, #18580 in a84344bc539c66589c8d4fe30c6ceaecf8ba1af3.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36360#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701968286d369-8e07d88f-ec57-4ace-bd1f-557692c11298-000000%40eu-central-1.amazonses.com.

Reply via email to