mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the field the relation points to.
This commit is contained in:
committed by
Mariusz Felisiak
parent
8eb4133714
commit
a44a21a22f
@@ -1148,7 +1148,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user