def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def export(self, request):
        serializer = ConditionExportSerializer(self.get_queryset(), many=True)
        xml = ConditionRenderer().render(serializer.data)
        return XMLResponse(xml, name='conditions')