mirror of
https://github.com/django/django.git
synced 2025-11-23 04:25:55 +00:00
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| models.py | ||
| test_prefetch_related_objects.py | ||
| test_uuid.py | ||
| tests.py | ||