mirror of
https://github.com/django/django.git
synced 2025-09-28 13:04:54 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue