I have a queryset
Class SmallFoo(Model):
text = models.CharField()
Class Foo(Model):
small_foo = models.ManyToManyField(SmallFoo)
e.g.Foo.objects.filter(id__in=[2,4,6]).update(small_foo__remove=[1,2])
I want to do something like above i.e. for a query-set update the manytomany field for all of them. Is it possible to do that? I do not want to iterate over each object in queryset and fire separate queries for them. (It takes too much time)