mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Added test of filtering on BinaryField and corrected docs.
This commit is contained in:
@@ -416,9 +416,8 @@ guaranteed to fit numbers from ``-9223372036854775808`` to
|
||||
|
||||
.. class:: BinaryField(max_length=None, **options)
|
||||
|
||||
A field to store raw binary data. It only supports ``bytes`` assignment. Be
|
||||
aware that this field has limited functionality. For example, it is not possible
|
||||
to filter a queryset on a ``BinaryField`` value.
|
||||
A field to store raw binary data. It can be assigned :class:`bytes` or a
|
||||
: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`.
|
||||
|
||||
Reference in New Issue
Block a user