summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-10-01 08:16:16 -0500
committerTim Graham <timograham@gmail.com>2018-10-01 09:16:47 -0400
commitd95d7d68969d1dc805829f4ffa5e7050e0ab06c3 (patch)
tree1bae0edaee459d6c60247c856c9948cb6aca1f13 /docs
parent4a7ea6ba58cffa688b042b0f6b5972f7d07a998f (diff)
[2.1.x] Added tests for using bytearray with BinaryField and corrected docs.
Backport of b3b47bf5156d400595363fa0029e51ce3f974ff0 from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/fields.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 89abf2ab2f..48a12013ba 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -416,8 +416,8 @@ guaranteed to fit numbers from ``-9223372036854775808`` to
.. class:: BinaryField(max_length=None, **options)
-A field to store raw binary data. It can be assigned :class:`bytes` or a
-:class:`memoryview`.
+A field to store raw binary data. It can be assigned :class:`bytes`,
+:class:`bytearray`, or :class:`memoryview`.
By default, ``BinaryField`` sets :attr:`~Field.editable` to ``False``, in which
case it can't be included in a :class:`~django.forms.ModelForm`.