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:16 -0400
commitb3b47bf5156d400595363fa0029e51ce3f974ff0 (patch)
tree2a3000f87931b81b8d48ac1ac1e49ee7da7fc13a /docs
parente9defb3f6e60b626e9ec40ff5df1322fceb52601 (diff)
Added tests for using bytearray with BinaryField and corrected docs.
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 60d6fd5fc9..c7e7eb928c 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`.