#31415: QuerySet crashes when nested OuterRef is combined with an operator or
used
in function.
-------------------------------------+-------------------------------------
Reporter: Ben Nace | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* type: Uncategorized => Bug
* version: 3.0 => master
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Adding `OuterRef.relabeled_clone()` fix this issue for me. It's not
related with join references, you can easily reproduce it by combining
nested `OuterRef()` with an operator, e.g.
`Time.objects.filter(time__lt=OuterRef(OuterRef('time')) * 2)`.
Related with #29142.
--
Ticket URL: <https://code.djangoproject.com/ticket/31415#comment:5>
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/071.212f7f97b39ab02e4fad15e1422b6afa%40djangoproject.com.