From 8ca35d7c6a639933927f45b439363a1614da56f1 Mon Sep 17 00:00:00 2001 From: Shai Berger Date: Tue, 3 Mar 2015 00:01:21 +0200 Subject: [PATCH] Fixed Oracle build failure introduced by refs #24390. Used shorter column names to make the generated index name fit within Oracle's limit of 30 characters --- tests/indexes/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/indexes/tests.py b/tests/indexes/tests.py index 7d4b866bcf..270f796c85 100644 --- a/tests/indexes/tests.py +++ b/tests/indexes/tests.py @@ -18,10 +18,10 @@ class SchemaIndexesTests(TestCase): with connection.schema_editor() as editor: index_name = editor._create_index_name( model=Article, - column_names=("column1", "column2", "column3"), + column_names=("c1", "c2", "c3"), suffix="123", ) - self.assertEqual(index_name, "indexes_article_column1_6bd61f85123") + self.assertEqual(index_name, "indexes_article_c1_7ce4cc86123") def test_index_together(self): editor = connection.schema_editor()