1st May 2008 Django’s ORM is, in my opinion, the unsung gem of the framework. For the subset of SQL that’s used in most web applications it’s very hard to beat. It’s a beautiful piece of API design, and I tip my hat to the people who designed and built it. Lazy evaluation If you haven’t spent much time with the ORM, two key features are lazy evaluation and chaining. Consider the following statemen