diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2019-03-17 21:47:21 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-03-25 20:04:35 +0100 |
| commit | 981dd6dd71ea80e5149c2eff564622e96c12b5be (patch) | |
| tree | cf778f7862805def6a46f9ffd29e8a2dde7d1de7 /docs/ref | |
| parent | dc53f2135b341ef0b6203ecb0a1894cdbd174a9c (diff) | |
Fixed #28431 -- Added a system check for BinaryField to prevent strings defaults.
Thanks Claude Paroz for the initial patch.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/checks.txt | 2 |
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 |
