areas = Area.objects.filter(id__in=[1, 2, 3]).order_by('name'
    ).prefetch_related('role_set')
for area in areas:
    roles = area.role_set.all()
for role in roles:
    pass
Объединение полей ManyToMany с prefetch_related в Django