mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #25417 -- Added a field check for invalid default values.
This commit is contained in:
parent
75ed590032
commit
71ebcb85b9
4 changed files with 89 additions and 0 deletions
|
@ -140,6 +140,7 @@ Fields
|
|||
human readable name)`` tuples.
|
||||
* **fields.E006**: ``db_index`` must be ``None``, ``True`` or ``False``.
|
||||
* **fields.E007**: Primary keys must not have ``null=True``.
|
||||
* **fields.E008**: Invalid ``default`` value.
|
||||
* **fields.E100**: ``AutoField``\s must set primary_key=True.
|
||||
* **fields.E110**: ``BooleanField``\s do not accept null values.
|
||||
* **fields.E120**: ``CharField``\s must define a ``max_length`` attribute.
|
||||
|
|
|
@ -512,6 +512,9 @@ Models
|
|||
|
||||
* ``connection.queries`` shows queries with substituted parameters on SQLite.
|
||||
|
||||
* Added a new model field check that makes sure
|
||||
:attr:`~django.db.models.Field.default` is a valid value.
|
||||
|
||||
CSRF
|
||||
^^^^
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue