class documentation

class ManyToManyDescriptor(ReverseManyToOneDescriptor):

View In Hierarchy

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

Method __init__ Undocumented
Method ​_get​_set​_deprecation​_msg​_params Undocumented
Instance Variable reverse Undocumented
Property related​_manager​_cls Undocumented
Property through Undocumented

Inherited from ReverseManyToOneDescriptor:

Method __get__ Get the related objects through the reverse relation.
Method __set__ Undocumented
Instance Variable field Undocumented
Instance Variable rel Undocumented
def __init__(self, rel, reverse=False):
reverse =

Undocumented

@property
through =

Undocumented