mirror of https://github.com/django/django.git
Refs #21798 - Modified error number to provide room for future expansion.
This commit is contained in:
parent
393ddc10a7
commit
2c176eb95c
|
@ -1097,7 +1097,7 @@ class DateTimeCheckMixin(object):
|
||||||
"may be present.",
|
"may be present.",
|
||||||
hint=None,
|
hint=None,
|
||||||
obj=self,
|
obj=self,
|
||||||
id='fields.E151',
|
id='fields.E160',
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -67,7 +67,7 @@ Fields
|
||||||
* **fields.E134**: ``max_digits`` must be greater or equal to ``decimal_places``.
|
* **fields.E134**: ``max_digits`` must be greater or equal to ``decimal_places``.
|
||||||
* **fields.E140**: FilePathFields must have either ``allow_files`` or ``allow_folders`` set to True.
|
* **fields.E140**: FilePathFields must have either ``allow_files`` or ``allow_folders`` set to True.
|
||||||
* **fields.E150**: GenericIPAddressFields cannot accept blank values if null values are not allowed, as blank values are stored as nulls.
|
* **fields.E150**: GenericIPAddressFields cannot accept blank values if null values are not allowed, as blank values are stored as nulls.
|
||||||
* **fields.E151**: The options ``auto_now``, ``auto_now_add``, and ``default`` are mutually exclusive. Only one of these options may be present.
|
* **fields.E160**: The options ``auto_now``, ``auto_now_add``, and ``default`` are mutually exclusive. Only one of these options may be present.
|
||||||
|
|
||||||
File Fields
|
File Fields
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
|
@ -423,7 +423,7 @@ class DateFieldTests(IsolatedModelsTestCase):
|
||||||
"may be present.",
|
"may be present.",
|
||||||
hint=None,
|
hint=None,
|
||||||
obj=field,
|
obj=field,
|
||||||
id='fields.E151',
|
id='fields.E160',
|
||||||
)]
|
)]
|
||||||
checks = field.check()
|
checks = field.check()
|
||||||
self.assertEqual(checks, expected)
|
self.assertEqual(checks, expected)
|
||||||
|
|
Loading…
Reference in New Issue