From b6251956b69512bf230322bd7a49b629ca8455c6 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Wed, 4 Sep 2019 09:21:08 +0100 Subject: Fixed #30757 -- Added a system check to ensure max_length fits the longest choice. --- docs/ref/checks.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 4da932720e..f147d9dc0b 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -138,6 +138,8 @@ Model fields * **fields.E006**: ``db_index`` must be ``None``, ``True`` or ``False``. * **fields.E007**: Primary keys must not have ``null=True``. * **fields.E008**: All ``validators`` must be callable. +* **fields.E009**: ``max_length`` is too small to fit the longest value in + ``choices`` (```` characters). * **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.* -- cgit v1.3