diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2012-09-24 13:18:14 +0100 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2012-09-24 13:18:14 +0100 |
| commit | d146b250aecd7adb13ad7b998cc60cc3a10fd0b6 (patch) | |
| tree | afe34287a98a9d5a689fd4b69cacf696a0284cc4 | |
| parent | 3a338d00ec0d32d54faa0bf88409d02638eae60d (diff) | |
Remove one of the last traces of South
| -rw-r--r-- | django/db/backends/schema.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/schema.py b/django/db/backends/schema.py index 5a5932abeb..08b53e7cb2 100644 --- a/django/db/backends/schema.py +++ b/django/db/backends/schema.py @@ -607,7 +607,7 @@ class BaseDatabaseSchemaEditor(object): '%s_%s' % (model._meta.db_table, BaseDatabaseCreation._digest(column_names[0])), self.connection.ops.max_name_length() ) - # Else generate the name for the index by South + # Else generate the name for the index using a different algorithm table_name = model._meta.db_table.replace('"', '').replace('.', '_') index_unique_name = '_%x' % abs(hash((table_name, ','.join(column_names)))) # If the index name is too long, truncate it |
