Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a typo in r9650.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dc4c95cdbf6b297ea214ea8583fd92caea05e3fb 1 parent 986e162
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/mysql/validation.py
View
2  django/db/backends/mysql/validation.py
@@ -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.