summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-09-27 02:50:46 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-09-27 02:50:46 +0000
commit0cc18151706d4f85e47b0171c63a63f51e0adcce (patch)
treee60f2e0898085700c4e5ad2e2a9564ba3dd4873e
parenta834f213bd5cf0cf794adbee67be5a614af6c219 (diff)
Fixed Python 2.3 compatibility problem in [3872].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management.py b/django/core/management.py
index 4fa40b5807..a5d7186ac9 100644
--- a/django/core/management.py
+++ b/django/core/management.py
@@ -867,7 +867,7 @@ def get_validation_errors(outfile, app=None):
if settings.DATABASE_ENGINE == 'mysql':
db_version = connection.get_server_version()
if db_version < (5, 0, 3) and isinstance(f, (models.CharField, models.CommaSeparatedIntegerField, models.SlugField)) and f.maxlength > 255:
- e.add(opts, '"%s": %s cannot have a "maxlength" greater than 255 when you are using a version of MySQL prior to 5.0.3 (you are using %s).' % (f.name, f.__class__.__name__, '.'.join(str(n) for n in db_version[:3])))
+ e.add(opts, '"%s": %s cannot have a "maxlength" greater than 255 when you are using a version of MySQL prior to 5.0.3 (you are using %s).' % (f.name, f.__class__.__name__, '.'.join([str(n) for n in db_version[:3]])))
# Check to see if the related field will clash with any
# existing fields, m2m fields, m2m related objects or related objects