{{{
Has two optional arguments for validation:
max_length
min_length
}}}
However, if you actually try to create a CharField without a max_length
Django will complain:
{{{
"some_field": CharFields require a "max_length" attribute that is a
positive integer.
}}}
So, it seems that the max_length arg is required by Django, but listed as
optional in the documentation, and thus it appears the documentation
requires an update.
--
Ticket URL: <https://code.djangoproject.com/ticket/23683>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
You are mixing the form field documentation with the model field
documentation:
https://docs.djangoproject.com/en/dev/ref/forms/fields/#charfield
https://docs.djangoproject.com/en/dev/ref/models/fields/#charfield
--
Ticket URL: <https://code.djangoproject.com/ticket/23683#comment:1>