def es_required(fun):
    @wraps(fun)
    def wrapper(*args, **kw):
        if getattr(settings, 'ES_DISABLED', False):
            log.debug('Search disabled for %s.' % fun)
            return

        return fun(*args, es=get_es(), **kw)
    return wrapper
parse a string-based _colspec into its component parts.
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/contrib/django/__init__.py/es_required--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/sql/schema.py/ForeignKey._column_tokens