mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Added tests for using bytearray with BinaryField and corrected docs.
This commit is contained in:
parent
e9defb3f6e
commit
b3b47bf515
2 changed files with 8 additions and 3 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue