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.
--
Ticket URL: <https://code.djangoproject.com/ticket/25628>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => fixed
* needs_tests: => 0
* needs_docs: => 0
Comment:
The "Invalid 'default'" feature was reverted in #25417.
--
Ticket URL: <https://code.djangoproject.com/ticket/25628#comment:1>