mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[2.0.x] Fixed #28514 -- Clarifed docs about idempotence of RelatedManager.add().
Backport of abe6c5defe
from master
This commit is contained in:
parent
0cae6069dc
commit
83362cb94a
3 changed files with 9 additions and 4 deletions
|
@ -75,7 +75,7 @@ Create another ``Article``, and set it to appear in both ``Publications``::
|
|||
>>> a2.publications.add(p1, p2)
|
||||
>>> a2.publications.add(p3)
|
||||
|
||||
Adding a second time is OK::
|
||||
Adding a second time is OK, it will not duplicate the relation::
|
||||
|
||||
>>> a2.publications.add(p3)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue