class documentation
class ManyToManyRel(ForeignObjectRel): (source)
Used by ManyToManyField to store information about the relation. ``_meta.get_fields()`` returns this class to provide access to the field flags for the reverse relation.
Method | __init__ |
Undocumented |
Method | get |
Return the field in the 'to' object to which this relationship is tied. Provided for symmetry with ManyToOneRel. |
Instance Variable | db |
Undocumented |
Instance Variable | symmetrical |
Undocumented |
Instance Variable | through |
Undocumented |
Instance Variable | through |
Undocumented |
Property | identity |
Undocumented |
Inherited from ForeignObjectRel
:
Method | __eq__ |
Undocumented |
Method | __getstate__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | get |
Undocumented |
Method | get |
Return the name of the cache key to use for storing an instance of the forward model on the reverse model. |
Method | get |
Return choices with a default blank choices included, for use as <select> choices for this field. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | is |
Should the related object be hidden? |
Method | set |
Set the related field's name, this is not available until later stages of app loading, so set_field_name is called from set_attributes_from_rel() |
Class Variable | auto |
Undocumented |
Class Variable | concrete |
Undocumented |
Class Variable | editable |
Undocumented |
Class Variable | empty |
Undocumented |
Class Variable | is |
Undocumented |
Class Variable | null |
Undocumented |
Instance Variable | field |
Undocumented |
Instance Variable | field |
Undocumented |
Instance Variable | limit |
Undocumented |
Instance Variable | model |
Undocumented |
Instance Variable | multiple |
Undocumented |
Instance Variable | on |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | related |
Undocumented |
Instance Variable | related |
Undocumented |
Property | db |
Undocumented |
Property | hidden |
Undocumented |
Property | many |
Undocumented |
Property | many |
Undocumented |
Property | name |
Undocumented |
Property | one |
Undocumented |
Property | one |
Undocumented |
Property | path |
Undocumented |
Property | related |
Undocumented |
Property | remote |
Undocumented |
Property | target |
When filtering against this relation, return the field on the remote model against which the filtering should happen. |
Inherited from FieldCacheMixin
(via ForeignObjectRel
):
Method | delete |
Undocumented |
Method | get |
Undocumented |
Method | is |
Undocumented |
Method | set |
Undocumented |
def __init__(self, field, to, related_name=None, related_query_name=None, limit_choices_to=None, symmetrical=True, through=None, through_fields=None, db_constraint=True):
(source)
¶
Undocumented
Return the field in the 'to' object to which this relationship is tied. Provided for symmetry with ManyToOneRel.