Ticket #4351: 4351.patch

File 4351.patch, 651 bytes (added by Chris Beaven, 17 years ago)

Documentation clarification

  • docs/model-api.txt

     
    464464
    465465Note that empty string values will always get stored as empty strings, not
    466466as ``NULL`` -- so use ``null=True`` for non-string fields such as integers,
    467 booleans and dates.
     467booleans and dates. Note that you will still need ``blank=True`` to if the
     468field is allowed to be blank in Django's admin site.
    468469
    469470Avoid using ``null`` on string-based fields such as ``CharField`` and
    470471``TextField`` unless you have an excellent reason. If a string-based field
Back to Top