1👍
✅
Try this
models.Fedsubj.objects.filter(articles__isnull=False, articles__id_section=some_sectionart_instance).distinct()
Source:stackexchange.com