0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
django/tests/model_fields
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
4x8.png
8x4.png
models.py Fixed #28393 -- Added helpful error messages for invalid AutoField/FloatField/IntegerField values. 2019-08-05 08:41:29 +02:00
test_autofield.py Fixed #29979, Refs #17337 -- Extracted AutoField field logic into a mixin and refactored AutoFields. 2019-08-20 09:22:25 +02:00
test_binaryfield.py Refs #27804 -- Used subTest() in BinaryFieldTests.test_set_and_retrieve. 2019-06-07 06:04:56 +02:00
test_booleanfield.py Fixed #29227 -- Allowed BooleanField to be null=True. 2018-03-20 12:10:10 -04:00
test_charfield.py Moved tests for model Field.get_choices(). 2018-04-20 11:05:25 -04:00
test_datetimefield.py
test_decimalfield.py Fixed #30400 -- Improved typography of user facing strings. 2019-06-28 16:46:18 +02:00
test_durationfield.py Fixed #30400 -- Improved typography of user facing strings. 2019-06-28 16:46:18 +02:00
test_field_flags.py Refs #28909 -- Simplifed code using unpacking generalizations. 2018-09-28 09:57:12 -04:00
test_filefield.py
test_filepathfield.py Fixed #29529 -- Allowed models.fields.FilePathField to accept a callable path. 2019-05-02 11:11:56 +02:00
test_floatfield.py Fixed #28393 -- Added helpful error messages for invalid AutoField/FloatField/IntegerField values. 2019-08-05 08:41:29 +02:00
test_foreignkey.py Fixed #27595 -- Made ForeignKey.get_col() follow target chains. 2018-10-22 09:49:34 -04:00
test_genericipaddressfield.py
test_imagefield.py
test_integerfield.py Fixed #29979, Refs #17337 -- Extracted AutoField field logic into a mixin and refactored AutoFields. 2019-08-20 09:22:25 +02:00
test_manytomanyfield.py
test_promises.py
test_slugfield.py
test_textfield.py
test_uuid.py Fixed #30400 -- Improved typography of user facing strings. 2019-06-28 16:46:18 +02:00
tests.py Fixed #30449 -- Fixed RelatedFieldListFilter/RelatedOnlyFieldListFilter to respect model's Meta.ordering. 2019-08-15 10:29:05 +02:00