summaryrefslogtreecommitdiff
path: root/django/db/models/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/base.py')
-rw-r--r--django/db/models/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index 74bece1f5c..6c59c0038a 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -1469,7 +1469,7 @@ class Model(six.with_metaclass(ModelBase)):
continue
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: