1. Andrew Godwin
  2. south

Commits

Andrew Godwin  committed 0e837d9

Fix problem with default key names and suffixes.

  • Participants
  • Parent commits c8fc826
  • Branches default

Comments (0)

Files changed (1)

File south/db/generic.py

View file
         """
 
         # If there is just one column in the index, use a default algorithm from Django
-        if len(column_names) == 1:
+        if len(column_names) == 1 and not suffix:
             return truncate_name(
                 '%s_%s' % (table_name, self._digest(column_names[0])),
                 self._get_connection().ops.max_name_length()