From 222699d224ee7851e1cab5ecc029cf83836b882b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Guimar=C3=A3es?= Date: Sat, 13 Dec 2014 18:15:39 -0200 Subject: [PATCH] Refs #23947 -- Fixed queries test execution order dependency. Specify an id to avoid conflict with objects created in setUpTestData. --- tests/queries/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/queries/tests.py b/tests/queries/tests.py index ad9383c871..00027c07a7 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -2011,7 +2011,7 @@ class SubqueryTests(TestCase): Related objects constraints can safely contain sliced subqueries. refs #22434 """ - generic = NamedCategory.objects.create(name="Generic") + generic = NamedCategory.objects.create(id=5, name="Generic") t1 = Tag.objects.create(name='t1', category=generic) t2 = Tag.objects.create(name='t2', category=generic) ManagedModel.objects.create(data='mm1', tag=t1, public=True)