1👍
✅
This should work:
placeholders = []
for plugin in project.projectplugin_set.all():
placeholders.append(plugin.placeholder_id)
NewsEntry.objects.filter(content__in=placeholders).distinct()
Source:stackexchange.com