﻿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
25628	"SystemCheckError states ""Invalid 'default' value"" when no max_length on CharField is specified."	zelo	nobody	"Using django 1.9b1 i got this message during execution of makemigrations command:
{{{
SystemCheckError: System check identified some issues:

ERRORS:
resources.Resource.test: (fields.E008) Invalid 'default' value: Ensure this value has at most %(limit_value)d characters (it has %(show_value)d).
resources.Resource.test: (fields.E120) CharFields must define a 'max_length' attribute.
}}}

With this code:
{{{
    test = models.CharField(
        choices=(
            ('foo','bar'),
        ),
        default='foo',
    )
}}}

Adding max_length resolves both errors."	Bug	closed	Database layer (models, ORM)	1.9b1	Normal	fixed			Unreviewed	0	0	0	0	0	0
