summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_foreignkey.py
AgeCommit message (Collapse)Author
2025-10-13Removed reference to "manager" in ForeignKeyTests.Jacob Walls
Follow-up to 0de89b6f8d4d8f5fd232d6c5412260b0d79a760a.
2022-04-22Refs #31223 -- Added __class_getitem__() to ForeignKey.Collin Anderson
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-07-15Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵Daniyal
django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-01-31Fixed 31207 -- Prevented references to non-local remote fields in ↵Hasan Ramezani
ForeignKey.to_field. Thanks Simon Charette for the initial patch and review.
2018-10-22Fixed #27595 -- Made ForeignKey.get_col() follow target chains.Simon Charette
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.
2017-11-30Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey ↵Simon Charette
pointing to a MTI model. Regression in b9f8635f58ad743995cad2081b3dc395e55761e5.
2017-01-19Fixed spelling mistakes in code and comments.james mike dupont
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2016-03-23Split model_fields tests into different files.Tim Graham