Ticket #10786: fields-10786.diff

File fields-10786.diff, 764 bytes (added by sbj3, 15 years ago)

Added note to null attribute and BooleanField that NullBooleanField s/b used.

  • docs/ref/models/fields.txt

     
    5353have two possible values for "no data;" Django convention is to use the empty
    5454string, not ``NULL``.
    5555
     56If you need to accept :attr:`~Field.null` values with :class:`BooleanField`, use
     57:class:`NullBooleanField` instead.
     58
    5659.. note::
    5760
    5861    When using the Oracle database backend, the ``null=True`` option will be
     
    306309
    307310A true/false field.
    308311
     312If you need to accept :attr:`~Field.null` values with :class:`BooleanField`, use
     313:class:`NullBooleanField` instead.
     314
    309315The admin represents this as a checkbox.
    310316
    311317.. admonition:: MySQL users..
Back to Top