Ticket #2417: model-api.patch
File model-api.patch, 749 bytes (added by , 18 years ago) |
---|
-
docs/model-api.txt
126 126 automatically be added to your model if you don't specify otherwise. See 127 127 `Automatic primary key fields`_. 128 128 129 ``BinaryField`` 130 ~~~~~~~~~~~~~ 131 132 Raw binary data, 133 134 The 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 138 and in Django's validation. 139 140 Note: Right now, database level enforcement only takes place in MySQL. 141 129 142 ``BooleanField`` 130 143 ~~~~~~~~~~~~~~~~ 131 144