Commits

Andrew Godwin committed 46b9058

Make postgres create_index_name respect suffix kwarg

Comments (0)

Files changed (1)

south/db/postgresql_psycopg2.py

 
         if len(column_names) == 1:
             return truncate_name(
-                '%s_%s' % (table_name, column_names[0]),
+                '%s_%s%s' % (table_name, column_names[0], suffix),
                 self._get_connection().ops.max_name_length()
             )
         return super(DatabaseOperations, self).create_index_name(table_name, column_names, suffix)
 
-
     @generic.copy_column_constraints
     @generic.delete_column_constraints
     def rename_column(self, table_name, old, new):