diff options
| author | Anubhav Joshi <anubhav9042@gmail.com> | 2014-06-20 10:30:04 +0530 |
|---|---|---|
| committer | Shai Berger <shai@platonix.com> | 2014-06-23 19:36:40 +0300 |
| commit | 1c50d6ae2bee31ccf605066186d4d48aaf2de7ea (patch) | |
| tree | 492056ff2f0f55d38494bd4623e494a77da554fb /tests | |
| parent | 908160f6926506dc64244e9d5a4507bc67ea0a81 (diff) | |
Fixed problem introduced with #refs 13711.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/invalid_models_tests/test_models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
