#18375: F() doesn't work as expected across multijoin relations
-------------------------------------+-------------------------------------
Reporter: FunkyBob | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.4
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by akaariai):
True, that example isn't valid Python.
The simplest example is something like this:
{{{
.filter(unter__id=1, id=F('unter__id'))
}}}
where unter is any reverse relation.
Depending on the ordering of the kwargs dict the F() either creates a new
join or not. This means the same query will execute differently on
different runs if dict randomization is turned on.
--
Ticket URL: <https://code.djangoproject.com/ticket/18375#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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.