Fixed #20735 -- clarified ManyToManyField constructor doc
This commit is contained in:
parent
59ebe39812
commit
ac223ff6d1
|
@ -1184,10 +1184,10 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in
|
||||||
|
|
||||||
.. class:: ManyToManyField(othermodel, [**options])
|
.. class:: ManyToManyField(othermodel, [**options])
|
||||||
|
|
||||||
A many-to-many relationship. Requires a positional argument: the class to which
|
A many-to-many relationship. Requires a positional argument: the class to
|
||||||
the model is related. This works exactly the same as it does for
|
which the model is related, which works exactly the same as it does for
|
||||||
:class:`ForeignKey`, including all the options regarding :ref:`recursive
|
:class:`ForeignKey`, including :ref:`recursive <recursive-relationships>` and
|
||||||
<recursive-relationships>` and :ref:`lazy <lazy-relationships>` relationships.
|
:ref:`lazy <lazy-relationships>` relationships.
|
||||||
|
|
||||||
Related objects can be added, removed, or created with the field's
|
Related objects can be added, removed, or created with the field's
|
||||||
:class:`~django.db.models.fields.related.RelatedManager`.
|
:class:`~django.db.models.fields.related.RelatedManager`.
|
||||||
|
|
Loading…
Reference in New Issue