  .. class:: BinaryField(**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. It is also not possible to
  include a ``BinaryField`` in a :class:`~django.forms.ModelForm`.
  
  .. admonition:: Abusing ``BinaryField``
  
      Although you might think about storing files in the database, consider that
      it is bad design in 99% of the cases. This field is *not* a replacement for
 
</s> remove         kwargs['editable'] = False
 </s> add         kwargs.setdefault('editable', False) </s> remove         del kwargs['editable']
 </s> add         if self.editable:
            kwargs['editable'] = True
        else:
            del kwargs['editable']
to filter a queryset on a ``BinaryField`` value.

By default, ``BinaryField`` sets :attr:`~Field.editable` to ``False``, in which
case it can't be included in a :class:`~django.forms.ModelForm`.

.. versionchanged:: 2.1

    Older versions don't allow setting ``editable`` to ``True``.
  .. class:: BinaryField(**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.

By default, ``BinaryField`` sets :attr:`~Field.editable` to ``False``, in which
case it can't be included in a :class:`~django.forms.ModelForm`.

.. versionchanged:: 2.1

    Older versions don't allow setting ``editable`` to ``True``.
to filter a queryset on a ``BinaryField`` value.

By default, ``BinaryField`` sets :attr:`~Field.editable` to ``False``, in which
case it can't be included in a :class:`~django.forms.ModelForm`.

.. versionchanged:: 2.1

    Older versions don't allow setting ``editable`` to ``True``.
  
  .. admonition:: Abusing ``BinaryField``
  
      Although you might think about storing files in the database, consider that
      it is bad design in 99% of the cases. This field is *not* a replacement for
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #28937 -- Allowed BinaryField to be editable=True. 
docs/ref/models/fields.txt