﻿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
35726	db.models.TextField.formfield() does not behave like CharField.formfield() when null=True	Ole Laursen		"I have a specific use case where I need null instead of the empty string in the database when some text fields passing through a form are not filled in.

This works fine for CharFields, but I recently discovered that it doesn't for TextFields. For TextFields they always turn out as the empty string.

It looks like CharField has this specific support for setting empty_value = None in .formfield(), but TextField does not:

{{{
        if self.null and not connection.features.interprets_empty_strings_as_nulls:
            defaults[""empty_value""] = None
}}}

I would expect them to behave the same."	New feature	closed	Forms	dev	Normal	wontfix	empty_value		Unreviewed	0	0	0	0	0	0
