class documentation
class GenericForeignKey(FieldCacheMixin): (source)
Provide a generic many-to-one relation through the ``content_type`` and ``object_id`` fields. This class also doubles as an accessor to the related object (similar to ForwardManyToOneDescriptor) by adding itself as a model attribute.
Method | __get__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __set__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | check |
Undocumented |
Method | contribute |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
See corresponding method on Field |
Method | get |
See corresponding method on RelatedField |
Method | get |
Undocumented |
Class Variable | auto |
Undocumented |
Class Variable | concrete |
Undocumented |
Class Variable | hidden |
Undocumented |
Class Variable | is |
Undocumented |
Class Variable | many |
Undocumented |
Class Variable | many |
Undocumented |
Class Variable | one |
Undocumented |
Class Variable | one |
Undocumented |
Class Variable | related |
Undocumented |
Class Variable | remote |
Undocumented |
Instance Variable | column |
Undocumented |
Instance Variable | ct |
Undocumented |
Instance Variable | editable |
Undocumented |
Instance Variable | fk |
Undocumented |
Instance Variable | for |
Undocumented |
Instance Variable | model |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | rel |
Undocumented |
Method | _check |
Check if field named `field_name` in model `model` exists and is a valid content_type field (is a ForeignKey to ContentType). |
Method | _check |
Undocumented |
Method | _check |
Undocumented |
Inherited from FieldCacheMixin
:
Method | delete |
Undocumented |
Method | get |
Undocumented |
Method | is |
Undocumented |
Method | set |
Undocumented |