Refs #25530 -- Changed _create_index_name to take a table as first parameter.

This commit is contained in:
Simon Charette 2017-04-01 14:00:47 -04:00
parent ad524980ac
commit ea91ad4c13
5 changed files with 20 additions and 13 deletions

View file

@ -1640,7 +1640,7 @@ class SchemaTests(TransactionTestCase):
author_index_name = index.name
with connection.schema_editor() as editor:
db_index_name = editor._create_index_name(
model=AuthorWithIndexedName,
table_name=AuthorWithIndexedName._meta.db_table,
column_names=('name',),
)
if connection.features.uppercases_column_names: