mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Refs #23801 -- Made integer field max_length warning show correct field type.
This commit is contained in:
parent
856ba1ec86
commit
c512912463
3 changed files with 20 additions and 12 deletions
|
@ -143,7 +143,8 @@ Model fields
|
|||
appeared before support for null values was added in Django 2.1.*
|
||||
* **fields.E120**: ``CharField``\s must define a ``max_length`` attribute.
|
||||
* **fields.E121**: ``max_length`` must be a positive integer.
|
||||
* **fields.W122**: ``max_length`` is ignored when used with ``IntegerField``.
|
||||
* **fields.W122**: ``max_length`` is ignored when used with
|
||||
``<integer field type>``.
|
||||
* **fields.E130**: ``DecimalField``\s must define a ``decimal_places`` attribute.
|
||||
* **fields.E131**: ``decimal_places`` must be a non-negative integer.
|
||||
* **fields.E132**: ``DecimalField``\s must define a ``max_digits`` attribute.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue