1
0
mirror of https://github.com/django/django.git synced 2025-05-04 14:14:37 +00:00
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
..