summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2019-03-17 21:47:21 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-03-25 20:04:35 +0100
commit981dd6dd71ea80e5149c2eff564622e96c12b5be (patch)
treecf778f7862805def6a46f9ffd29e8a2dde7d1de7 /docs
parentdc53f2135b341ef0b6203ecb0a1894cdbd174a9c (diff)
Fixed #28431 -- Added a system check for BinaryField to prevent strings defaults.
Thanks Claude Paroz for the initial patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index 2e00de454b..117830ffbc 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -159,6 +159,8 @@ Model fields
* **fields.W161**: Fixed default value provided.
* **fields.W162**: ``<database>`` does not support a database index on
``<field data type>`` columns.
+* **fields.E170**: ``BinaryField``’s ``default`` cannot be a string. Use bytes
+ content instead.
* **fields.E900**: ``IPAddressField`` has been removed except for support in
historical migrations.
* **fields.W900**: ``IPAddressField`` has been deprecated. Support for it