Adrian Holovaty wrote: > I've written up my latest proposal here: > > http://code.djangoproject.com/wiki/DescriptorFields > > It turns out related-object lookup can cleanly use the manager API. > Thoughts? If there are no big objections, let's start converting the > magic-removal unit tests to use this new syntax, and I'll start > implementation. > > Adrian > > -- > Adrian Holovaty > holovaty.com | djangoproject.com | chicagocrime.org >
Any reason here why Manager couldn't inherit from Query (or a common base type, eg QuerySet ), so it can be used directly as well as/instead of via .all() ? Also, you need to mention that Query instances can be combined via & and | ( and support the other set stuff), but that the results are lazily calculated.