class ManyToManyDescriptor(ReverseManyToOneDescriptor):
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 |
django.db.models.fields.related_descriptors.ReverseManyToOneDescriptor.related_manager_cls
Undocumented