Simon Willison’s Weblog

Why does Django still not have support for multiple joins?

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.

Tagged , , , ,

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?