﻿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
17725	Extend EMPTY_VALUES for the form and|or model field	Vladimir Prudnikov	nobody	"By default any values which is `in validators.EMPTY_VALUES` interpreted as an empty value. It would be great to be able to extend EMPTY_VALUES for the field by providing field argument `empty_values` which is a list of additional values interpreted as empty.

{{{
parent = forms.ModelChoiceField(...., empty_values=[""null"", ""None""])
}}}

This is very useful for public API's. Here is an example of how external script can generate POST or GET data which will have different meaning in the Django's form:

{{{
>>> import urllib
>>> urllib.urlencode({""name"":""Hello"",""parent"":None})
'name=Hello&parent=None'
}}}

What do you think?"	New feature	closed	Forms	1.3	Normal	wontfix		v.prudnikov+django@…	Unreviewed	0	0	0	0	0	0
