1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00
django/tests/prefetch_related
Maxime Toussaint 254df3a3bb Fixed #34791 -- Fixed incorrect Prefetch()'s cache for singly related objects.
Changed the cache name used for singly related objects to be the
to_attr parameter passed to a Prefetch object. This fixes issues with
checking if values have already been fetched in cases where the Field
already has some prefetched value, but not for the same model attr.
2023-09-07 12:56:08 +02:00
..
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_prefetch_related_objects.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +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 #34791 -- Fixed incorrect Prefetch()'s cache for singly related objects. 2023-09-07 12:56:08 +02:00