summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2019-09-04 09:21:08 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-09 10:28:18 +0200
commitb6251956b69512bf230322bd7a49b629ca8455c6 (patch)
treea120d0fd618bbc70405821a94903248639f7ae35 /docs
parentfee75d2aed4e58ada6567c464cfd22e89dc65f4a (diff)
Fixed #30757 -- Added a system check to ensure max_length fits the longest choice.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt2
1 files changed, 2 insertions, 0 deletions
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`` (``<count>`` 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.*