Re: referencing fields on the model without F()

2011-04-13 Thread Roman Klesel
Hello Yuka, 2011/4/13 Yuka Poppe : > You could possibly resort to the extra() queryset method, allthough it eats > raw sql, its documented in the manual. Im not sure if its in 0.96 though. Yes, thanks! I think I found a solution: hw=Hardware.objects\ .filter(rack__he__isnull

Re: referencing fields on the model without F()

2011-04-13 Thread Yuka Poppe
You could possibly resort to the extra() queryset method, allthough it eats raw sql, its documented in the manual. Im not sure if its in 0.96 though. -- Regards, Yuka On Wed, Apr 13, 2011 at 3:09 PM, Roman Klesel wrote: > Hello, > > I have an old version of django here where the F() object is n

referencing fields on the model without F()

2011-04-13 Thread Roman Klesel
Hello, I have an old version of django here where the F() object is not available (0.96). Is there a chance to reference a field on the same model without using using F()? I'd like to write: hw=Hardware.objects.filter(he=F('rack__he')) ... but there is no F() in this version. Any ideas? Rega