Legend:

EDIT: As a workaround you can add a filter like: Q(b__c__a__isnull=True)|Q(b__c__a__isnull=False) to the query. The filter doesn't actually filter anything out but it forces a LEFT join for the problematic join.

7

EDIT: As a workaround you can add a filter like `Q(b__c__a__isnull=True)|Q(b__c__a__isnull=False)` to the query. The filter doesn't actually filter anything out but it forces a LEFT join for the problematic join.