#18437: Incorrect double JOIN when using multiple .filter() calls on the same 
table
-------------------------------------+-------------------------------------
     Reporter:  Diederik van der     |                    Owner:  nobody
  Boor                               |
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by phuongcv1112):

 We can use: FilteredRelation to specify 1 relation (and join 1 time) only:

 https://docs.djangoproject.com/en/3.0/ref/models/querysets
 /#filteredrelation-objects

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18437#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/064.98cf51ba085a20be84f4ef03e54aa475%40djangoproject.com.

Reply via email to