Simon Willison’s Weblog

Subscribe

Why does Django still not have support for multiple joins?

9th May 2011

My answer to Why does Django still not have support for multiple joins? on Quora

I don’t fully understand the question, but if you’re talking about doing a single join across multiple tables the Django ORM handles that just fine. Let’s say you want to get every BlogEntry written by a User who belongs to the Group with the name “admins”:

entries = BlogEntry.objects.filter(author__group__name = ’admins’)

This is Why does Django still not have support for multiple joins? by Simon Willison, posted on 9th May 2011.

Next: What are good websites to post online content about an event?

Previous: What are the main conferences taking place in the US dedicated to Open Source?

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe