Skip to content

Commit

Permalink
Refs #30913 -- Corrected IndexesTests.test_index_include_pointing_to_…
Browse files Browse the repository at this point in the history
…fk().

This adjusts a test assigning an Index to Meta.constraints.
  • Loading branch information
charettes authored and felixxm committed Feb 21, 2024
1 parent 0a646c8 commit abe6c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/invalid_models_tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class Model(models.Model):
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"],
Expand Down

0 comments on commit abe6c1f

Please sign in to comment.