0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Refs #23947 -- Fixed queries test execution order dependency.

Specify an id to avoid conflict with objects created in setUpTestData.
This commit is contained in:
Diego Guimarães 2014-12-13 18:15:39 -02:00 committed by Tim Graham
parent e8223b889a
commit 222699d224

View File

@ -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)