Commits

Anonymous committed c39d0cf

don't create an index for any column that's also unique. the create table statement should create a unique index by default for this column

Comments (0)

Files changed (1)

                 )
             )
             
-        if field.db_index:
+        if field.db_index and not field.unique:
             self.add_deferred_sql(self.create_index_sql(table_name, [field.column]))
             
         return sql % sqlparams