1👍
✅
What you would need to do is construct the ORed clause separately:
object_filter = Q()
for obj in my_objects:
object_filter = object_filter | Q(content_type=ContentType.objects.get_for_model(obj),
object_id=obj.id)
items = Item.objects.filter(object_filter)
Source:stackexchange.com