Ticket #2417: model-api.patch

File model-api.patch, 749 bytes (added by Marc Fargas <telenieko@…>, 18 years ago)

Documentation for BinaryField

  • docs/model-api.txt

     
    126126automatically be added to your model if you don't specify otherwise. See
    127127`Automatic primary key fields`_.
    128128
     129``BinaryField``
     130~~~~~~~~~~~~~
     131
     132Raw binary data,
     133
     134The admin represents this as an ``<input type="text">`` (a single-line input).
     135
     136``BinaryField`` has an extra required argument, ``maxlength``, the maximum length
     137(in characters) of the field. The maxlength is enforced at the database level
     138and in Django's validation.
     139
     140Note: Right now, database level enforcement only takes place in MySQL.
     141
    129142``BooleanField``
    130143~~~~~~~~~~~~~~~~
    131144
Back to Top