Package django :: Package contrib :: Package contenttypes :: Module generic :: Class ReverseGenericRelatedObjectsDescriptor
[hide private]
[frames] | no frames]

Class ReverseGenericRelatedObjectsDescriptor

source code

object --+
         |
        ReverseGenericRelatedObjectsDescriptor

This class provides the functionality that makes the related-object managers available as attributes on a model class, for fields that have multiple "remote" values and have a GenericRelation defined in their model (rather than having another model pointed *at* them). In the example "article.publications", the publications attribute is a ReverseGenericRelatedObjectsDescriptor instance.

Instance Methods [hide private]
 
__init__(self, field)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__get__(self, instance, instance_type=None) source code
 
__set__(self, instance, value) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, field)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)