added existing m2ms were not correctly parsed

This commit is contained in:
Laura Klünder 2017-06-16 20:47:06 +02:00
parent 1d6ce7179d
commit 60551ff9b0

View file

@ -392,7 +392,7 @@ class BaseQueryWrapper(BaseWrapper):
set(int(pk[1:]) for pk in pks if self.is_created_pk(pk)))
return (((q & ~Q(pk__in=(pk for pk in remove_pks if not self.is_created_pk(pk)))) |
Q(pk__in=(pk for pk in remove_pks if not self.is_created_pk(pk)))),
Q(pk__in=(pk for pk in add_pks if not self.is_created_pk(pk)))),
set(int(pk[1:]) for pk in add_pks if self.is_created_pk(pk)))
raise NotImplementedError