﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26361	Template Filter for loop with range	Emett Speer	Emett Speer	"I propose a filter be added to make a template for loop from a range. This could look something like this {% for _ in 5|range %}. It seems to me that something like this should already be in the template language for Django already. This would be added to ""django/template/defaultfilters.py""

The code for something like this could be as follows


{{{
@register.filter(is_safe=False)
@stringfilter
def range(value):
    """"""
    Returns a list the length of the value

    Will cast a string to an int
    """"""
    return list(range(int(value)))
}}}"	New feature	closed	Template system	1.9	Normal	duplicate			Unreviewed	0	0	0	0	0	0
