From e9d1f1182aaccaa8b60cf6a3491f0103d2bb0229 Mon Sep 17 00:00:00 2001 From: MattBlack85 Date: Tue, 18 Nov 2014 15:03:13 +0100 Subject: Fixed #23801 -- Added warning when max_length is used with IntegerField --- docs/ref/checks.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index f1b34fade4..86b287c0f2 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -82,6 +82,7 @@ Fields * **fields.E110**: ``BooleanField``\s do not accept null values. * **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.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. -- cgit v1.3