def _es_down_template(request, *args, **kwargs):
 return ('search/mobile/down.html' if request.MOBILE else 'search/down.html')

def _es_down_template ( request , * args , ** kwargs ) : return ( 'search/mobile/down.html' if request . MOBILE else 'search/down.html' )
returns the appropriate "elasticsearch is down!" template .