def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def index(self, request):
        queryset = Condition.objects.select_related('source', 'target_option')
        serializer = ConditionIndexSerializer(queryset, many=True)
        return Response(serializer.data)