From 1c50d6ae2bee31ccf605066186d4d48aaf2de7ea Mon Sep 17 00:00:00 2001 From: Anubhav Joshi Date: Fri, 20 Jun 2014 10:30:04 +0530 Subject: Fixed problem introduced with #refs 13711. --- tests/invalid_models_tests/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/invalid_models_tests/test_models.py') diff --git a/tests/invalid_models_tests/test_models.py b/tests/invalid_models_tests/test_models.py index 8550dc3065..6bce3f9a26 100644 --- a/tests/invalid_models_tests/test_models.py +++ b/tests/invalid_models_tests/test_models.py @@ -18,7 +18,7 @@ def get_max_column_name_length(): for db in settings.DATABASES.keys(): connection = connections[db] max_name_length = connection.ops.max_name_length() - if max_name_length is None: + if max_name_length is None or connection.features.truncates_name: continue else: if allowed_len is None: -- cgit v1.3