On Wed, Dec 16, 2009 at 10:02 AM, Anssi Kaariainen <akaar...@cc.hut.fi> wrote:
...
> I am not suggesting this. What I would like to have is something like
> foo.field.is_deferred(). I don't think there is any easy way to test
> this currently. This could come handy in a template for example. You
> could use the same template for objects fetched with different raw
> queries, and skip deferred fields when showing data about the object.

This won't work, because deferred fields are descriptors, and
accessing foo.field would run the query.

Something you could do is foo.deferred_fields.field_name -> Boolean,
but that seems pretty clunky to me.

--

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


Reply via email to