Re: QuerySet's __repr__

2007-01-14 Thread Bjørn Stabell
Malcolm Tredinnick wrote: [...] This seems like a reasonable idea, although I'm not sure if __repr__ is the right place for it or not (and that's something that doesn't interfere with the implementation anyway, so I'm not going to worry much). In principle __repr__ should be the right place (a

Re: QuerySet's __repr__

2007-01-14 Thread Malcolm Tredinnick
Hi Bj�rn, This didn't seem to get a response, but it deserves some acknowledgement... On Fri, 2006-12-29 at 04:17 +, Bj�rn Stabell wrote: Hi, I would like to be able to serialize QuerySets for use as "canned" queries etc, and looking at QuerySet it's currently delegating __repr__ to its d

QuerySet's __repr__

2006-12-28 Thread Bjørn Stabell
Hi, I would like to be able to serialize QuerySets for use as "canned" queries etc, and looking at QuerySet it's currently delegating __repr__ to its data. I was wondering what the feeling would be to change this to actually return a Python expression that would evaluate to the value of the Que