﻿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
4960	"Add ""strip"" keyword argument to CharField constructor"	tzellman@…	Daniel Ward	"I am suggesting that a '''strip''' keyword (or something similar) gets added to the '''CharField''' constructor in '''newforms/fields.py'''.

This would allow for certain fields to get stripped before being cleaned.
'''Example:''' Assume you have a CharField with min_length set to 3. Typing in 3 spaces will be valid, which in some cases is fine. But other times, you want to strip the whitespace. This way, a field filled with spaces will be considered to be empty, if the ""strip"" argument is True.

This is only a suggestion, but it would be nice to have. I know that I could easily sub-class and create my own ""StrippedCharField"", and that might be the right way to go, but I thought this might be a common issue for other people as well.

Thanks!

"	New feature	closed	Forms	dev	Normal	fixed	CharField strip	hv@… marti@…	Accepted	1	0	0	0	0	0
