def get_template_names(self):
        if self.request.is_ajax():
            template = self.ajax_template_name
        else:
            template = self.template_name
        return template
Ensure other greenthreads get a chance to be executed.
dataset/ETHPy150Open CiscoSystems/avos/horizon/workflows/views.py/WorkflowView.get_template_names--crossover with--dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/engines.py/_thread_yield