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
..
4x8.png
8x4.png
__init__.py
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 Removed DatabaseFeatures.supports_microsecond_precision. 2017-09-25 14:48:15 -04:00
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 Refs #27777 -- Improved docs/added test for File context manager change. 2017-05-31 21:02:58 -04:00
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 Fixed #26557 -- Converted empty strings to None when saving GenericIPAddressField. 2016-04-29 10:11:49 -04:00
test_imagefield.py Fixed hanging indentation in various code. 2018-03-16 10:54:34 +01:00
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 Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy. 2017-08-31 09:34:44 -04:00
test_promises.py Refs #23919 -- Removed six.<various>_types usage 2017-01-18 20:18:46 +01:00
test_slugfield.py Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_textfield.py Fixed #28319 -- Made TextField with choices use a Select widget. 2017-06-17 08:23:32 -04:00
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