django/tests/validation
Nick Pope 21e559495b Fixed #29979, Refs #17337 -- Extracted AutoField field logic into a mixin and refactored AutoFields.
This reduces duplication by allowing AutoField, BigAutoField and
SmallAutoField to inherit from IntegerField, BigIntegerField and
SmallIntegerField respectively. Doing so also allows for enabling the
max_length warning check and minimum/maximum value validation for auto
fields, as well as providing a mixin that can be used for other possible
future auto field types such as a theoretical UUIDAutoField.
2019-08-20 09:22:25 +02:00
..
__init__.py Switched TestCase to SimpleTestCase where possible in Django's tests. 2018-11-27 08:58:44 -05:00
models.py Fixed #29979, Refs #17337 -- Extracted AutoField field logic into a mixin and refactored AutoFields. 2019-08-20 09:22:25 +02:00
test_custom_messages.py Switched TestCase to SimpleTestCase where possible in Django's tests. 2018-11-27 08:58:44 -05:00
test_error_messages.py Fixed #30400 -- Improved typography of user facing strings. 2019-06-28 16:46:18 +02:00
test_picklable.py Fixed #21555 -- Made ValidationError pickable. 2013-12-07 18:58:37 +07:00
test_unique.py Removed unnecessary trailing commas and spaces in various code. 2017-12-28 21:07:29 +01:00
test_validators.py Switched TestCase to SimpleTestCase where possible in Django's tests. 2018-11-27 08:58:44 -05:00
tests.py Switched setUp() to setUpTestData() where possible in Django's tests. 2018-11-27 09:35:17 -05:00