Skip to content

Commit 30a12d6

Browse files
jdufresnetimgraham
authored andcommitted
[1.6.x] Refs #23964 -- Added warning about case-insensitive, unique fields used with formsets
Backport of 4d27d72 from master
1 parent 43c55a7 commit 30a12d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/ref/databases.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,13 @@ because it is more accurate.
374374

375375
.. _MySQL Unicode Character Sets: http://dev.mysql.com/doc/refman/5.7/en/charset-unicode-sets.html
376376

377+
.. warning::
378+
379+
Model formsets validate unique fields in a case-sensitive manner. Thus when
380+
using a case-insensitive collation, a formset with unique field values that
381+
differ only by case will pass validation, but upon calling ``save()``, an
382+
``IntegrityError`` will be raised.
383+
377384
Connecting to the database
378385
--------------------------
379386

0 commit comments

Comments
 (0)