#сейчас я фильтрую вручную concepts = Concept.objects.all() concepts_published = [] for c in concepts: if ConnectionVKPost.objects.filter(concept=c): concepts_published.append(c)
#а хотелось бы так: concepts_published = Concept.objects.filter(published = True) #где published вычисляется на основание другого queryset