1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #27904 -- Added a system check that Field.validators are callable.

This commit is contained in:
Adam Chainz
2017-03-05 16:50:33 +00:00
committed by Tim Graham
parent 75503a823f
commit a452dddb25
4 changed files with 39 additions and 1 deletions

View File

@@ -154,6 +154,7 @@ Model fields
human readable name)`` tuples.
* **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.E100**: ``AutoField``\s must set primary_key=True.
* **fields.E110**: ``BooleanField``\s do not accept null values.
* **fields.E120**: ``CharField``\s must define a ``max_length`` attribute.