From 43254876c250a7d470313112cc7750a43ffbd92e Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Thu, 4 Jun 2020 07:36:12 +0200 Subject: [PATCH] [3.1.x] Fixed #31650 -- Added note uniqueness of constraints names in docs. Backport of 55556e51fb152c864ddc782d9b56e8b785ccf8bc from master --- docs/ref/models/constraints.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/ref/models/constraints.txt b/docs/ref/models/constraints.txt index 00e907a8827..99520d9ffac 100644 --- a/docs/ref/models/constraints.txt +++ b/docs/ref/models/constraints.txt @@ -67,7 +67,8 @@ ensures the age field is never less than 18. .. attribute:: CheckConstraint.name -The name of the constraint. +The name of the constraint. You must always specify a unique name for the +constraint. .. versionchanged:: 3.0 @@ -97,7 +98,8 @@ date. .. attribute:: UniqueConstraint.name -The name of the constraint. +The name of the constraint. You must always specify a unique name for the +constraint. .. versionchanged:: 3.0