Joseph Kocherhans wrote:
> At any rate, Managers and ManyToMany/OneToMany attributes do extremely > similar things, and I think they could share an api and maybe even > share most implementation. If managers behaved like object attributes, > this is what I'm worried about: > > MyModel.objects.filter(creator__exact=5) > for obj in MyModel.objects: > print obj I was under the impression that you'd do something like: for obj in MyModel.objects.filter(creator__exact=5): print obj i.e. .filter() doesn't do anything to the existing MyModel.objects, but returns a new lazy collection object with extra lookup params. Thus you could do: object_set1 = MyModel.objects.filter(creator__exact=1) object_set2 = MyModel.objects.filter(creator__exact=2) Regards, Jason