QuerySet: LEFT JOIN with AND QuerySet: LEFT JOIN with AND django django

QuerySet: LEFT JOIN with AND


Unfortunately, the answer here is no.

The Django ORM, like most of Django, follows a philosophy that easy things should be easy and hard things should be possible. In this case, you are definitely in the "hard things" area and the "possible" solution is to simply write the raw query. There are definitely situations like this where writing the raw query can be difficult and feels kinda gross, but from the project's perspective situations like this are too rare to justify the cost of adding such functionality.