Re: 'Faking' related-object managers on instances?

2007-03-15 Thread Jeff Forcier
I'm starting to think I should just email you directly with my problems, Malcom :D Thanks a lot - I've done that sort of thing before, but just wasn't thinking of it, it's definitely a fine stopgap solution. Since you seem to agree about adding the method to QuerySets in general, I'll throw a qui

Re: 'Faking' related-object managers on instances?

2007-03-15 Thread Malcolm Tredinnick
On Thu, 2007-03-15 at 21:17 +, Jeff Forcier wrote: [...] > The problem is that QuerySets are not Managers, and so I will find > myself mucking with these objects in various spots and not knowing > offhand whether a given relationship attribute has e.g. the .all() > method, or not. If it's a re

'Faking' related-object managers on instances?

2007-03-15 Thread Jeff Forcier
Hi all, I have an object hierarchy with varying levels of depth, and have a few relationships that span multiple objects - in other words, if A is related to B which is related to C, I will want to find all As related to a given C object, even though they are *indirectly* related. Since I use th