[1.6.x] Refs #23964 -- Added warning about case-insensitive, unique fields used with formsets

Backport of 4d27d72d14 from master
This commit is contained in:
Jon Dufresne 2014-12-08 07:49:35 -08:00 committed by Tim Graham
parent 43c55a7d4e
commit 30a12d6ca6
1 changed files with 7 additions and 0 deletions

View File

@ -374,6 +374,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
--------------------------