class documentation
class ManyToManyDescriptor(ReverseManyToOneDescriptor): (source)
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 |
Instance Variable | reverse |
Undocumented |
Property | related |
Undocumented |
Property | through |
Undocumented |
Method | _get |
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 |
overrides
django.db.models.fields.related_descriptors.ReverseManyToOneDescriptor.related_manager_cls
Undocumented