mirror of
https://github.com/django/django.git
synced 2025-01-05 07:55:47 +00:00
Refs #30913 -- Corrected IndexesTests.test_index_include_pointing_to_fk().
This adjusts a test assigning an Index to Meta.constraints.
This commit is contained in:
parent
0a646c8e08
commit
abe6c1f93e
@ -436,7 +436,7 @@ class IndexesTests(TestCase):
|
|||||||
fk_2 = models.ForeignKey(Target, models.CASCADE, related_name="target_2")
|
fk_2 = models.ForeignKey(Target, models.CASCADE, related_name="target_2")
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
constraints = [
|
indexes = [
|
||||||
models.Index(
|
models.Index(
|
||||||
fields=["id"],
|
fields=["id"],
|
||||||
include=["fk_1_id", "fk_2"],
|
include=["fk_1_id", "fk_2"],
|
||||||
|
Loading…
Reference in New Issue
Block a user