summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-12-17 01:47:08 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-12-17 01:47:08 +0000
commitdc4c95cdbf6b297ea214ea8583fd92caea05e3fb (patch)
treee5a61ee493a2ba63d76f34545e480cb91521be37
parent986e162c5d0a0eb45e21bd3e3d6350a4c7d7af52 (diff)
Fixed a typo in r9650.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/backends/mysql/validation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/validation.py b/django/db/backends/mysql/validation.py
index 3014d7bae5..0b3d4ad0bd 100644
--- a/django/db/backends/mysql/validation.py
+++ b/django/db/backends/mysql/validation.py
@@ -18,7 +18,7 @@ class DatabaseValidation(BaseDatabaseValidation):
if isinstance(f, varchar_fields) and f.max_length > 255:
if db_version < (5, 0, 3):
msg = '"%(name)s": %(cls)s cannot have a "max_length" greater than 255 when you are using a version of MySQL prior to 5.0.3 (you are using %(version)s).'
- if f.unique == True:
+ elif f.unique == True:
msg = '"%(name)s": %(cls)s cannot have a "max_length" greater than 255 when using "unique=True".'
else:
msg = None