﻿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
15922	prepopulated_fields for DecimalField generates js error	lev	nobody	"1)
{{{
maxLength: {{ field.field.field.max_length|default_if_none:""50"" }}
)
}}}

is rendered as 
{{{
maxLength:
)
}}}

2) DecimalField doesn't have max_length attribute (raises AtttibuteError).

3)

{{{
{% ifequal field.field.field.max_length None %}yes{% else %}no{% endif %}
}}}

returns yes;

4) 
{{{
{{ field.field.field.max_length|default:""50"" }}
}}}

generates 50 being an imperfect workaround since it '''should''' be default_if_none"	Bug	closed	contrib.admin	1.3	Normal	duplicate	prepopulated_fields Decimal default_if_none		Accepted	0	0	0	0	1	1
