Django-ORM Left join with all columns of both tables -
I have two tables, A and B, let me use the DEGENGO ORM (left join) for all columns of the two tables. the wanted.
I'm a new bee for the deeggo and programming please help.
Use in a way value () value on your query (though what you are asking for Is not very clear). It returns a query instead of a query, but behaves like a left joining SQL, in straight databases - i.e. table B. returns rows with blank entries.
Assume that Table A has a foreign key in table B in the model file.
TableA.object.filter (your filters here). Price (table A__field1, tableA__field2, ... \ tableB__field1, tableB__field2, etc.).
Comments
Post a Comment