ManyRelatedManagerWrapper.set() should propagate author
This commit is contained in:
parent
18cf51dfbd
commit
cba7feb29f
1 changed files with 2 additions and 2 deletions
|
@ -224,8 +224,8 @@ class ManyRelatedManagerWrapper(ManagerWrapper):
|
||||||
old_ids = set(self.values_list('pk', flat=True))
|
old_ids = set(self.values_list('pk', flat=True))
|
||||||
new_ids = set(obj.pk for obj in objs)
|
new_ids = set(obj.pk for obj in objs)
|
||||||
|
|
||||||
self.remove(*(old_ids - new_ids))
|
self.remove(*(old_ids - new_ids), author=author)
|
||||||
self.add(*(new_ids - old_ids))
|
self.add(*(new_ids - old_ids), author=author)
|
||||||
|
|
||||||
def add(self, *objs, author=None):
|
def add(self, *objs, author=None):
|
||||||
if author is None:
|
if author is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue