Skip to content
Snippets Groups Projects
Commit 8e9d2348 authored by Piotr Roszatycki's avatar Piotr Roszatycki Committed by Tomás Fox
Browse files

Bugfix test_should_check_reverse_relations_add_foreign_key

parent 422c84b5
No related branches found
No related tags found
No related merge requests found
......@@ -481,7 +481,7 @@ def test_should_check_reverse_relations_add_foreign_key():
optimized_items = qs.prefetch_related(
Prefetch(
'otm_items',
queryset=RelatedOneToManyItem.objects.select_related('item').only('id', 'item_id', 'item__id', 'item__name', 'item__parent_id', 'item__item_id'),
queryset=RelatedOneToManyItem.objects.only('id', 'item_id'),
),
)
assert_query_equality(items, optimized_items)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment