def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def export(self, request):
        serializer = ConditionExportSerializer(self.get_queryset(), many=True)
        xml = ConditionRenderer().render(serializer.data)
        return XMLResponse(xml, name='conditions')