diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-12-17 01:50:11 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-12-17 01:50:11 +0000 |
| commit | 3c9aaaef34366431773e1fd1fab65bbee42a9c24 (patch) | |
| tree | 78a89adfc1b47ea286832d58d47835d030917e65 | |
| parent | ae5c9b33d0e7b2de6202b1bf841276f0a0d3c623 (diff) | |
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
| -rw-r--r-- | django/db/backends/mysql/validation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/validation.py b/django/db/backends/mysql/validation.py index 3014d7bae5..0b3d4ad0bd 100644 --- a/django/db/backends/mysql/validation.py +++ b/django/db/backends/mysql/validation.py @@ -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 |
