From 2249370c8611d97f8bdb6003fb7b4d8fd3646202 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 11 Dec 2024 21:37:23 +0100 Subject: Fixed #35992, Fixed #35997 -- Added system check for CompositePrimaryKeys in Meta.indexes/constraints/unique_together. CompositePrimaryKeys are not supported in any of these options. --- docs/ref/checks.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index b0a98bde28..17570a1923 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -431,6 +431,9 @@ Models (``db_table_comment``). * **models.W047**: ```` does not support unique constraints with nulls distinct. +* **models.E048**: ``constraints/indexes/unique_together`` refers to a + ``CompositePrimaryKey`` ````, but ``CompositePrimaryKey``\s are + not supported for that option. Management Commands ------------------- -- cgit v1.3