def template_range(value):
    try:
        value = int(value)
    except:
        value = 0
    return range(1, value + 1)
Return a range 1..value
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_store/shop/templatetags/satchmo_util.py/template_range