1
0
mirror of https://github.com/django/django.git synced 2024-11-18 07:26:04 +00: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 Refs #27777 -- Improved docs/added test for File context manager change. 2017-05-31 21:02:58 -04:00
test_floatfield.py Used assertRaisesMessage() to test Django's error messages. 2017-07-29 19:07:23 -04: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 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 Refs #23919 -- Removed six.<various>_types usage 2017-01-18 20:18:46 +01:00
test_slugfield.py
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 #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