﻿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
30077	TextField constructor needs a strip=False option	Rob van der Linde	nobody	"In Django 1.9 an option strip=True was added to CharField, this is fine but it also seems to affect TextField and there is no way to pass a strip=False option to TextField constructor to turn that off.

The issue seems to be the formfield method, this has lead to people subclassing TextField to ""fix"" this addition to Django 1.9, for example:

{{{
class NonStrippingTextField(TextField):
    """"""A TextField that does not strip whitespace at the beginning/end of
    it's value.  Might be important for markup/code.""""""

    def formfield(self, **kwargs):
        kwargs['strip'] = False
        return super(NonStrippingTextField, self).formfield(**kwargs)

}}}

Other people fix it in the form and override the admin form, this has become a bit messy, it seems to be necessary to introduce a strip argument to the TextField constructor, to avoid having to create custom field types."	New feature	closed	Database layer (models, ORM)	2.1	Normal	invalid			Unreviewed	0	0	0	0	0	0
