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:
parent
e8223b889a
commit
222699d224
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user