[Answer]-Django-cms placeholder outside cms – how to get related model using the placeholder from the one model that is connected?

1👍

This should work:

placeholders = []
for plugin in project.projectplugin_set.all():
    placeholders.append(plugin.placeholder_id)
NewsEntry.objects.filter(content__in=placeholders).distinct()

Leave a comment