1
0
mirror of https://github.com/django/django.git synced 2025-01-03 15:06:09 +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:
Simon Charette 2024-02-19 00:55:40 -05:00 committed by Mariusz Felisiak
parent 0a646c8e08
commit abe6c1f93e

View File

@ -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"],