summaryrefslogtreecommitdiff
path: root/django/db/models/base.py
diff options
context:
space:
mode:
authorAnubhav Joshi <anubhav9042@gmail.com>2014-06-20 10:30:04 +0530
committerShai Berger <shai@platonix.com>2014-06-23 19:36:40 +0300
commit1c50d6ae2bee31ccf605066186d4d48aaf2de7ea (patch)
tree492056ff2f0f55d38494bd4623e494a77da554fb /django/db/models/base.py
parent908160f6926506dc64244e9d5a4507bc67ea0a81 (diff)
Fixed problem introduced with #refs 13711.
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: