def css_class_cycler():
    FMT = 'evt-{0}-{1}'.format
    return defaultdict(default_css_class_cycler, (
        (e.abbr, itertools.cycle((FMT(e.abbr, 'even'), FMT(e.abbr, 'odd'))))
        for e in EventType.objects.all()
    ))


#===============================================================================
Roll provided date forward to next offset only if not on offset
dataset/ETHPy150Open dakrauth/django-swingtime/swingtime/utils.py/css_class_cycler--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/tseries/offsets.py/DateOffset.rollforward