diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-26 11:38:12 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-26 15:07:06 -0400 |
| commit | a6e7ebf4ee91bbdcfd8cb5b90564ff6ccbac4cc0 (patch) | |
| tree | d57ab347e23b8348d4678a7e0c130bc0c3ae6bd1 /docs/ref/models | |
| parent | f5335bc745d4f86d355b69549712885fd1634574 (diff) | |
[2.1.x] Added test of filtering on BinaryField and corrected docs.
Backport of fb2964a4106b1282c4179b6fbbd0374f5be1ccac from master.
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/fields.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 8c3f9ae7ba..89abf2ab2f 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -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`. |
