#28900: QuerySet.values() and values_list() for compound queries fails with
annotation.
-------------------------------------+-------------------------------------
     Reporter:  elliott-omosheye     |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.11
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  union, values        |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"71a19a0e475165dbc14c1fe02f552013ee670e4c" 71a19a0]:
 {{{#!CommitTicketReference repository=""
 revision="71a19a0e475165dbc14c1fe02f552013ee670e4c"
 Fixed #36301 -- Fixed select_for_update(of) crash when using
 values()/values_list().

 Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a which allowed for
 annotations to be SELECT'ed before model field references through
 values()/values_list() and broke assumptions the select_for_update(of)
 table infererence logic had about model fields always being first.

 Refs #28900.

 Thanks OutOfFocus4 for the report and Sarah for the test.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/28900#comment:30>
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/01070196123a6361-c847aa97-0643-4388-964d-1539e1ce6e42-000000%40eu-central-1.amazonses.com.

Reply via email to