diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-09-19 16:27:51 +0200 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-10-13 14:53:39 -0300 |
| commit | 5b51e6f759f2ba993219347435149173c756c478 (patch) | |
| tree | 69f6b88a9d858b1401983b009cff07b8c214a921 /docs/ref | |
| parent | edde2891c355103ba455f3fea95cff962e40962c (diff) | |
Fixed #36611, Refs #36580 -- Added system check for multicolumn ForeignObject in Meta.indexes/constraints/unique_together.
ForeignObjects with multiple `from_fields` are not supported in these
options.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/checks.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index ab92220ac9..7735eed478 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -443,6 +443,9 @@ Models * **models.E048**: ``constraints/indexes/unique_together`` refers to a ``CompositePrimaryKey`` ``<field name>``, but ``CompositePrimaryKey``\s are not supported for that option. +* **models.E049**: ``constraints/indexes/unique_together`` refers to a + ``ForeignObject`` ``<field name>`` with multiple ``from_fields``, which is + not supported for that option. Management Commands ------------------- |
