Fixed a typo in r9650.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-12-17 01:47:08 +00:00
parent 986e162c5d
commit dc4c95cdbf
1 changed files with 1 additions and 1 deletions

View File

@ -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