class documentation
class GenericRelation(ForeignObject): (source)
Provide a reverse to a relation created by a GenericForeignKey.
Method | __init__ |
Undocumented |
Method | bulk |
Return all objects related to ``objs`` via this ``GenericRelation``. |
Method | check |
Undocumented |
Method | contribute |
Undocumented |
Method | get |
Return the content type associated with this field's model. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | resolve |
Undocumented |
Method | set |
Undocumented |
Method | value |
Undocumented |
Class Variable | auto |
Undocumented |
Class Variable | empty |
Undocumented |
Class Variable | many |
Undocumented |
Class Variable | many |
Undocumented |
Class Variable | mti |
Undocumented |
Class Variable | one |
Undocumented |
Class Variable | one |
Undocumented |
Instance Variable | content |
Undocumented |
Instance Variable | for |
Undocumented |
Instance Variable | model |
Undocumented |
Instance Variable | object |
Undocumented |
Instance Variable | to |
Undocumented |
Method | _check |
Undocumented |
Method | _get |
Return the path that joins the current model through any parent models. The idea is that if you have a GFK defined on a parent model then we need to join the parent model first, then the child model. |
Method | _is |
Return True if field is a GenericForeignKey whose content type and object id fields correspond to the equivalent attributes on this GenericRelation. |
def __init__(self, to, object_id_field='object_id', content_type_field='content_type', for_concrete_model=True, related_query_name=None, limit_choices_to=None, **kwargs):
(source)
¶
Undocumented