django/tests/prefetch_related
Clifford Gama d5c19f9b32 Fixed #34819 -- Made GenericForeignKey prefetching use matching pk representations.
Ensured that rel_obj_attr and instance_attr return matching (pk, cls) tuples
in GenericForeignKey.get_prefetch_queryset(), preventing mismatches when
prefetching related objects where pk and get_prep_value() differ. Using
value_to_string() also makes this code compatible with composite primary keys.
2025-03-26 09:55:38 +01:00
..
__init__.py
models.py Fixed #34819 -- Made GenericForeignKey prefetching use matching pk representations. 2025-03-26 09:55:38 +01:00
test_prefetch_related_objects.py Fixed #35309 -- Made prefetch clear ordering for single-valued relationships. 2024-03-20 05:26:18 +01:00
test_uuid.py Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
tests.py Fixed #34819 -- Made GenericForeignKey prefetching use matching pk representations. 2025-03-26 09:55:38 +01:00