mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #28431 -- Added a system check for BinaryField to prevent strings defaults.
Thanks Claude Paroz for the initial patch.
This commit is contained in:
committed by
Mariusz Felisiak
parent
dc53f2135b
commit
981dd6dd71
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user