Hi, Replying to self.
On Tue, Dec 04, 2007 at 11:25:42AM -0500, Forest Bond wrote: > objects = MyModel.objects.filter(site=1).fetch() > first_one = objects[0] Incidentally, qs.fetch() need not be equivalent to list(qs). It could just trigger qs to cache the results of the query and return qs itself. That would ensure that the query is only executed once, unless further manipulations are attempted. Not that that is necessarily the right thing to do. -Forest -- Forest Bond http://www.alittletooquiet.net
signature.asc
Description: Digital signature