django/tests/prefetch_related
utkarsh.arya@zomato.com 2dd64937f2 Fix prefetch_related for GFKs to UUID primary keys
Ensure GenericForeignKey works with UUID PKs by using to_python for type conversion.
Fixes issue where prefetch_related returned None for GFKs to UUID models.
References: justquick/django-activity-stream#245
2025-11-15 22:55:43 +00:00
..
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Fix prefetch_related for GFKs to UUID primary keys 2025-11-15 22:55:43 +00:00
test_prefetch_related_objects.py Made prefetch_related tests use assertCountEqual() for unordered sequences. 2018-02-05 10:00:57 -05:00
test_uuid.py Fix prefetch_related for GFKs to UUID primary keys 2025-11-15 22:55:43 +00:00
tests.py Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in favor of databases. 2019-01-10 19:11:21 -05:00