Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 3c9aaaef34366431773e1fd1fab65bbee42a9c24 1 parent ae5c9b3
Malcolm Tredinnick malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/mysql/validation.py
2  django/db/backends/mysql/validation.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.