#23683: CharField's max_length is Incorrectly Listed as Optional in 
Documentation
-------------------------------+--------------------
     Reporter:  machineghost   |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Documentation  |    Version:  1.7
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 The documentation (for all currently documented versions of Django) on the
 CharField class states that it:

 {{{
 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.3804868213bbe7098e803973b2d5cecf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to