0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
django/tests/model_fields
Simon Charette 5e3463f6bc Fixed #27595 -- Made ForeignKey.get_col() follow target chains.
Previously, foreign relationships were followed only one level deep which
prevents foreign keys to foreign keys from being resolved appropriately.
This was causing issues such as improper database value conversion for
UUIDField on SQLite because the resolved expression's output field's
internal type wasn't correct. Added tests to make sure unlikely foreign
reference cycles don't cause recursion errors.

Refs #24343.

Thanks oyooyo for the report and Wayne Merry for the investigation.
2018-10-22 09:49:34 -04:00
..
__init__.py
4x8.png
8x4.png
models.py Fixed #29227 -- Allowed BooleanField to be null=True. 2018-03-20 12:10:10 -04:00
test_binaryfield.py Added tests for using bytearray with BinaryField and corrected docs. 2018-10-01 09:16:16 -04: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 #28915 -- Prevented SQLite from truncating trailing zeros in the fractional part of DecimalField. 2017-12-12 21:57:41 -10:00
test_durationfield.py Fixed #28926 -- Fixed loss of precision of big DurationField values on SQLite and MySQL. 2017-12-28 17:35:41 -05:00
test_field_flags.py Refs #28909 -- Simplifed code using unpacking generalizations. 2018-09-28 09:57:12 -04:00
test_filefield.py
test_floatfield.py
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 Fixed hanging indentation in various code. 2018-03-16 10:54:34 +01:00
test_integerfield.py Fixed #27979 -- Made MySQL raise IntegrityError rather than OperationalError when saving negative numbers in PositiveInteger fields. 2017-09-29 15:20:32 -04: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
test_slugfield.py
test_textfield.py
test_uuid.py Fixed #27595 -- Made ForeignKey.get_col() follow target chains. 2018-10-22 09:49:34 -04:00
tests.py Fixed #29247 -- Allowed blank model field choice to be defined in nested choices. 2018-04-20 11:06:14 -04:00