diff options
| author | Tobias Kunze <r@rixx.de> | 2019-04-17 13:37:56 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-05-07 12:58:55 +0200 |
| commit | 769f87fd2426aa7b21d535892fce75f070c21238 (patch) | |
| tree | 2b5d41f087a63be43626bf4262e2b8471f429c1b /django | |
| parent | bf9e0e342da3ed2f74ee0ec34e75bdcbedde40a9 (diff) | |
[2.2.x] Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the field the relation points to.
Backport of a44a21a22f20c1a710670676fcca798dd6bb5ac0 from master
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/fields/related_descriptors.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/models/fields/related_descriptors.py b/django/db/models/fields/related_descriptors.py index 50a1689921..c49a6cb36a 100644 --- a/django/db/models/fields/related_descriptors.py +++ b/django/db/models/fields/related_descriptors.py @@ -1097,7 +1097,8 @@ def create_forward_many_to_many_manager(superclass, rel, reverse): def _remove_items(self, source_field_name, target_field_name, *objs): # source_field_name: the PK colname in join table for the source object # target_field_name: the PK colname in join table for the target object - # *objs - objects to remove + # *objs - objects to remove. Either object instances, or primary + # keys of object instances. if not objs: return |
