1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #12990 -- Moved CheckFieldDefaultMixin to the django.db.models.fields.mixins.

This commit is contained in:
sage
2019-10-17 11:36:39 +02:00
committed by Mariusz Felisiak
parent 187a64608d
commit 6f82df69ef
9 changed files with 40 additions and 38 deletions

View File

@@ -140,6 +140,8 @@ Model fields
* **fields.E008**: All ``validators`` must be callable.
* **fields.E009**: ``max_length`` is too small to fit the longest value in
``choices`` (``<count>`` characters).
* **fields.E010**: ``<field>`` default should be a callable instead of an
instance so that it's not shared between all field instances.
* **fields.E100**: ``AutoField``\s must set primary_key=True.
* **fields.E110**: ``BooleanField``\s do not accept null values. *This check
appeared before support for null values was added in Django 2.1.*
@@ -747,7 +749,8 @@ fields:
* **postgres.E001**: Base field for array has errors: ...
* **postgres.E002**: Base field for array cannot be a related field.
* **postgres.E003**: ``<field>`` default should be a callable instead of an
instance so that it's not shared between all field instances.
instance so that it's not shared between all field instances. *This check was
changed to* ``fields.E010`` *in Django 3.1*.
``sites``
---------