mirror of
https://github.com/django/django.git
synced 2025-01-03 06: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")
|
||||
|
||||
class Meta:
|
||||
constraints = [
|
||||
indexes = [
|
||||
models.Index(
|
||||
fields=["id"],
|
||||
include=["fk_1_id", "fk_2"],
|
||||
|
Loading…
Reference in New Issue
Block a user