浏览代码

Fixed #33198 -- Corrected BinaryField.max_length docs.

Nick Frazier 3 年之前
父节点
当前提交
0d4e575c96
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/ref/models/fields.txt

+ 2 - 2
docs/ref/models/fields.txt

@@ -573,8 +573,8 @@ case it can't be included in a :class:`~django.forms.ModelForm`.
 
 
 .. attribute:: BinaryField.max_length
 .. attribute:: BinaryField.max_length
 
 
-    The maximum length (in characters) of the field. The maximum length is
-    enforced in Django's validation using
+    The maximum length (in bytes) of the field. The maximum length is enforced
+    in Django's validation using
     :class:`~django.core.validators.MaxLengthValidator`.
     :class:`~django.core.validators.MaxLengthValidator`.
 
 
 .. admonition:: Abusing ``BinaryField``
 .. admonition:: Abusing ``BinaryField``