﻿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
18761	Strip fields' values consistently	Vlastimil Zíma	Deni Bertovic	"Currently, some fields strips values during validation and some do not. The state does not even clearly represents whether whitespace is valid part of field's value.

|| Field || Strips || Should strip ||
|| !CharField || no || no ||
|| !IntegerField || yes || yes ||
|| !FloatField || yes || yes ||
|| !DecimalField || yes || yes ||
|| !BaseTemporalField || yes || yes ||
|| !RegexField || no || no ||
|| !EmailField || yes || yes ||
|| URLField || no || '''yes''' ||
|| !BooleanField || no || ? ||
|| !NullBooleanField || no || ? ||
|| IPAddressField || no || '''yes''' ||
|| GenericIPAddressField || no || '''yes''' || 
|| !SlugField || no || '''yes''' ||

Comments:
 * Spaces are not allowed in URLField, IPAddressField, GenericIPAddressField and !SlugField
 * Fairly unclear are boolean fields. IMHO if value to validate is string of whitespace characters, it should validate to !None/False as when represented by !TextInput user will see empty field.

I have not check localised form fields but I expect more fields that can be safely trimmed.

Maybe a good long-term solution would be list of filters (like validators) which would perform transformation to python object."	Cleanup/optimization	closed	Forms	dev	Normal	fixed			Accepted	1	0	0	0	1	0
