Fixed #22206 -- Passed models.TextField.max_length to forms.CharField.maxlength

This commit is contained in:
Chris Wilson 2014-03-04 14:12:13 +00:00 committed by Claude Paroz
parent ac699cdc17
commit 95c74b9d69
8 changed files with 37 additions and 8 deletions

View file

@ -533,7 +533,7 @@ class TestFieldOverridesByFormMeta(TestCase):
form = FieldOverridesByFormMetaForm()
self.assertHTMLEqual(
str(form['name']),
'<textarea id="id_name" rows="10" cols="40" name="name"></textarea>',
'<textarea id="id_name" rows="10" cols="40" name="name" maxlength="20"></textarea>',
)
self.assertHTMLEqual(
str(form['url']),