1
0
mirror of https://github.com/django/django.git synced 2025-07-21 01:59:26 +00:00

Fixed a typo in r9652.

Backport of r9659 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-12-17 01:50:11 +00:00
parent ae5c9b33d0
commit 3c9aaaef34

View File

@ -18,7 +18,7 @@ class DatabaseValidation(BaseDatabaseValidation):
if isinstance(f, varchar_fields) and f.max_length > 255: if isinstance(f, varchar_fields) and f.max_length > 255:
if db_version < (5, 0, 3): 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).' 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".' msg = '"%(name)s": %(cls)s cannot have a "max_length" greater than 255 when using "unique=True".'
else: else:
msg = None msg = None