#33225: Missing FROM-clause when ordering by a relationship defined on the 
parent
model in a Subquery inside a negated Q
-------------------------------------+-------------------------------------
     Reporter:  InvalidInterrupt     |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               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:

 Thanks for the report.

 I managed to reproduce against all versions down to 2.2 so this isn't a
 recent regression. It seems to be an issue with
 `sql.Query.split_exclude`/`.trim_start` as `query` still has its required
 `JOIN model_inheritance_regress_restaurant V1` prior to calling
 `.trim_start`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33225#comment:2>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/074.1dddcff2a93b1d8df63771af13cfda1e%40djangoproject.com.

Reply via email to