class ReverseManyToOneDescriptor:
Known subclasses: django.db.models.fields.related_descriptors.ManyToManyDescriptor
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children is a ReverseManyToOneDescriptor instance.
Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.
Method | __get__ |
Get the related objects through the reverse relation. |
Method | __init__ |
Undocumented |
Method | __set__ |
Undocumented |
Method | _get_set_deprecation_msg_params |
Undocumented |
Instance Variable | field |
Undocumented |
Instance Variable | rel |
Undocumented |
Property | related_manager_cls |
Undocumented |
Get the related objects through the reverse relation.
With the example above, when getting parent.children: