class documentation
class DeferredAttribute: (source)
Known subclasses: django.contrib.gis.db.models.proxy.SpatialProxy
, django.db.models.fields.files.FileDescriptor
, django.db.models.fields.related_descriptors.ForeignKeyDeferredAttribute
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 |
Instance Variable | field |
Undocumented |
Method | _check |
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. |
overridden in
django.contrib.gis.db.models.proxy.SpatialProxy
, django.db.models.fields.files.FileDescriptor
Retrieve and caches the value from the datastore on the first lookup. Return the cached value.