﻿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
8104	IntegerField max_value & min_value errors require a %s	Chris Jones <chris@…>	nobody	"When trying to set the max_value or min_value error message on an IntegerField without %s in the custom string a TypeError is raised.

Example: phone = forms.IntegerField(max_value=10 error_messages={'max_value': 'Please enter a phone number with 10 digits.')

Exception Type: TypeError
Exception Value: not all arguments converted during string formatting
Exception Location: /usr/local/lib/python2.5/site-packages/django/forms/fields.py in clean, line 185

To stop the TypeError from being raised I have to add %s somewhere in my custom error message string.
Example: phone = forms.IntegerField(max_value=10 error_messages={'max_value': 'Please enter a phone number with %s digits.')

Either the documentation needs to be updated to explain this or the error message should be able to handle a string with or without the max_value/min_value being called."		closed	Forms			duplicate	IntegerField max_value min_value TypeError		Design decision needed	0	0	0	0	0	0
