<filename>newsInfo/utils/common.py
##首页新闻排行的过滤器
def do_index_class(index):
    if index ==1:
        return 'first'
    elif index == 2:
        return 'second'
    elif index == 3:
        return 'third'


<filename>newsInfo/utils/common.py
##首页新闻排行的过滤器
def do_index_class(index):
    if index ==1:
        return 'first'
    elif index == 2:
        return 'second'
    elif index == 3:
        return 'third'


##首页新闻排行的过滤器