#29396: The __year lookp crashes with IndexError when passed a non-direct
values/expression.
-------------------------------------+-------------------------------------
     Reporter:  Dmitry Shachnev      |                    Owner:  Windson
                                     |  yang
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 As I commented on the PR the bug has little to do with subquery usage;
 `__year` lookup simply never supported non-direct values and `OuterRef`
 happens to implement the expression API in this particular case.

 Both this issue and #30494 which was for the `year__exact` case are
 handled by https://github.com/django/django/pull/11393.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29396#comment:7>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.394ffa2f20dd9393173c8d05d268bc59%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to