def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def export(self, request):
        serializer = ConditionExportSerializer(self.get_queryset(), many=True)
        xml = ConditionRenderer().render(serializer.data)
        return XMLResponse(xml, name='conditions')