From 4d27d72d149b714431b77f2f15bad1591a9602b7 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 8 Dec 2014 07:49:35 -0800 Subject: [PATCH] Refs #23964 -- Added warning about case-insensitive, unique fields used with formsets --- docs/ref/databases.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 2b36826e4b..05bb2da9ae 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -384,6 +384,13 @@ because it is more accurate. .. _MySQL Unicode Character Sets: http://dev.mysql.com/doc/refman/5.7/en/charset-unicode-sets.html +.. warning:: + + Model formsets validate unique fields in a case-sensitive manner. Thus when + using a case-insensitive collation, a formset with unique field values that + differ only by case will pass validation, but upon calling ``save()``, an + ``IntegrityError`` will be raised. + Connecting to the database --------------------------