summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/expressions.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index 67baef7dfc..f630142294 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -1058,6 +1058,15 @@ calling the appropriate methods on the wrapped expression.
Tells Django that this expression can be used in
:attr:`Field.db_default`. Defaults to ``False``.
+ .. attribute:: constraint_validation_compatible
+
+ .. versionadded:: 5.1
+
+ Tells Django that this expression can be used during a constraint
+ validation. Expressions with ``constraint_validation_compatible`` set
+ to ``False`` must have only one source expression. Defaults to
+ ``True``.
+
.. attribute:: contains_aggregate
Tells Django that this expression contains an aggregate and that a