from django import template
register = template.Library()

@register.filter
def next(some_list, current_index):
    try:
        return some_list[int(current_index)%4]
    except:
        return ''

@register.filter
def multiply(value, arg):
    return value * arg

@register.filter(name='split')
def split(value, key):
    return value.split(key)
from django import template
register = template.Library()

@register.filter
def next(some_list, current_index):
    try:
        return some_list[int(current_index)%4]
    except:
        return ''

@register.filter
def multiply(value, arg):
    return value * arg

@register.filter(name='split')
def split(value, key):
    return value.split(key)