﻿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
20440	forms.CharField should return an exception if max_length is not an integer	Tome Cvitan	Tome Cvitan	"In ''models.CharField'' you can define a verbose_name by placing a string as the first parameter, i.e. ''models.CharField(""foo"")''

If you by mistake happen to define a ''forms.CharField'' with the same pattern, i.e. ''forms.CharField(""foo"")'', there will be no error message and the input field will be rendered with the attribute ''maxlength=""foo""'' which is invalid.

The proposed solution is to attempt to cast non-empty ''max_length'' and ''min_length'' values to an int in the init method of CharField."	Bug	closed	Forms	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
