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

Module generic

source code

Classes allowing "generic" relations through ContentType and object-id fields.

Classes [hide private]
  GenericForeignKey
Provides a generic relation to any object through content-type/object-id fields.
  GenericRelation
Provides an accessor to generic related objects (i.e.
  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).
  GenericRel
Functions [hide private]
 
create_generic_related_manager(superclass)
Factory function for a manager that subclasses 'superclass' (which is a Manager) and adds behavior for generic related objects.
source code