﻿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
22739	CharField for Forms raises on empty string	jeremyt	nobody	"forms.CharField raises a ValidationError when the min_length is zero and it receives an empty string. Receiving an empty string is not the same as the argument not being present in the arguments.

In cases,
    PUT requests on a REST resource. Not sending a CharField means, do nothing to that field but sending a blank string is an attempt to set a field to an empty string.

  In a web form, I may want to require a field be present in the POST data as it is a part of my form but it may be blank/empty. If that field is not present, this means that the data isn't returning the fields in which I have set as required.


{{{
>>> from django import forms
>>> forms.CharField(min_length=0).clean("""")
django.core.exceptions.ValidationError: [u'This field is required.']
}}}
"	Bug	closed	Forms	1.6	Normal	wontfix			Unreviewed	0	0	0	0	0	0
