Skip to content

Commit

Permalink
Fixed a typo in r9652.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
malcolmt committed Dec 17, 2008
1 parent ae5c9b3 commit 3c9aaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/backends/mysql/validation.py
Expand Up @@ -18,7 +18,7 @@ def validate_field(self, errors, opts, f):
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
Expand Down

0 comments on commit 3c9aaae

Please sign in to comment.