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
<roman.kle...@googlemail.com>wrote:

> 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?
>
> Regards Roman
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to