From 981dd6dd71ea80e5149c2eff564622e96c12b5be Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Sun, 17 Mar 2019 21:47:21 +0100 Subject: Fixed #28431 -- Added a system check for BinaryField to prevent strings defaults. Thanks Claude Paroz for the initial patch. --- docs/ref/checks.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') 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**: ```` does not support a database index on ```` 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 -- cgit v1.3