Module generic
source code
Classes allowing "generic" relations through ContentType and
object-id fields.
|
|
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
|
|
|
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
|
|
Imports:
oldforms,
ObjectDoesNotExist,
connection,
signals,
RelatedField,
Field,
ManyToManyRel,
get_model,
dispatcher,
curry