summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2024-12-11 21:37:23 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-17 10:28:40 +0100
commit2249370c8611d97f8bdb6003fb7b4d8fd3646202 (patch)
tree76e98a2f349b15e01d6c12526a835acd49a600b6 /docs/ref
parent322e49ba3071022dde96f6aae71a578a1588db33 (diff)
Fixed #35992, Fixed #35997 -- Added system check for CompositePrimaryKeys in Meta.indexes/constraints/unique_together.
CompositePrimaryKeys are not supported in any of these options.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/checks.txt3
1 files changed, 3 insertions, 0 deletions
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**: ``<database>`` does not support unique constraints with
nulls distinct.
+* **models.E048**: ``constraints/indexes/unique_together`` refers to a
+ ``CompositePrimaryKey`` ``<field name>``, but ``CompositePrimaryKey``\s are
+ not supported for that option.
Management Commands
-------------------