class documentation

class ManyToManyRel(ForeignObjectRel):

View In Hierarchy

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​_related​_field Return the field in the 'to' object to which this relationship is tied. Provided for symmetry with ManyToOneRel.
Instance Variable db​_constraint Undocumented
Instance Variable symmetrical Undocumented
Instance Variable through Undocumented
Instance Variable through​_fields Undocumented
Property identity Undocumented

Inherited from ForeignObjectRel:

Method __eq__ Undocumented
Method __hash__ Undocumented
Method __repr__ Undocumented
Method get​_accessor​_name Undocumented
Method get​_cache​_name Return the name of the cache key to use for storing an instance of the forward model on the reverse model.
Method get​_choices Return choices with a default blank choices included, for use as <select> choices for this field.
Method get​_extra​_restriction Undocumented
Method get​_internal​_type Undocumented
Method get​_joining​_columns Undocumented
Method get​_lookup Undocumented
Method get​_path​_info Undocumented
Method is​_hidden Should the related object be hidden?
Method set​_field​_name 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​_created Undocumented
Class Variable concrete Undocumented
Class Variable editable Undocumented
Class Variable empty​_strings​_allowed Undocumented
Class Variable is​_relation Undocumented
Class Variable null Undocumented
Instance Variable field Undocumented
Instance Variable field​_name Undocumented
Instance Variable limit​_choices​_to Undocumented
Instance Variable model Undocumented
Instance Variable multiple Undocumented
Instance Variable on​_delete Undocumented
Instance Variable parent​_link Undocumented
Instance Variable related​_name Undocumented
Instance Variable related​_query​_name Undocumented
Property db​_type Undocumented
Property hidden Undocumented
Property many​_to​_many Undocumented
Property many​_to​_one Undocumented
Property name Undocumented
Property one​_to​_many Undocumented
Property one​_to​_one Undocumented
Property related​_model Undocumented
Property remote​_field Undocumented
Property target​_field 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​_cached​_value Undocumented
Method get​_cached​_value Undocumented
Method is​_cached Undocumented
Method set​_cached​_value 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):
def get_related_field(self):
Return the field in the 'to' object to which this relationship is tied. Provided for symmetry with ManyToOneRel.
db_constraint =

Undocumented

through =

Undocumented

through_fields =

Undocumented