Hi, guys, how or where is the "join" query in Django?
i think that Django dont have "join"..but how ill make join?
Thanks
Hi, guys, how or where is the "join" query in Django?
i think that Django dont have "join"..but how ill make join?
Thanks
SQL Join queries are a hack because SQL doesn't have objects or navigation among objects.
Objects don't need "joins". Just access the related objects.
If you're using models, the select_related method will return the object for any foreign keys you have set up (up to a limit you specify) within that model.