class documentation

class DeferredAttribute:

Known subclasses: django.contrib.gis.db.models.proxy.SpatialProxy, django.db.models.fields.files.FileDescriptor, django.db.models.fields.related_descriptors.ForeignKeyDeferredAttribute

View In Hierarchy

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Method __get__ Retrieve and caches the value from the datastore on the first lookup. Return the cached value.
Method __init__ Undocumented
Method ​_check​_parent​_chain Check if the field value can be fetched from a parent field already loaded in the instance. This can be done if the to-be fetched field is a primary key field.
Instance Variable field Undocumented
def __get__(self, instance, cls=None):
Retrieve and caches the value from the datastore on the first lookup. Return the cached value.
def __init__(self, field):
def _check_parent_chain(self, instance):
Check if the field value can be fetched from a parent field already loaded in the instance. This can be done if the to-be fetched field is a primary key field.
field =

Undocumented