Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored December 17, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/mysql/validation.py
2  django/db/backends/mysql/validation.py
@@ -18,7 +18,7 @@ def validate_field(self, errors, opts, f):
18 18
         if isinstance(f, varchar_fields) and f.max_length > 255:
19 19
             if db_version < (5, 0, 3):
20 20
                 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).'
21  
-            if f.unique == True:
  21
+            elif f.unique == True:
22 22
                 msg = '"%(name)s": %(cls)s cannot have a "max_length" greater than 255 when using "unique=True".'
23 23
             else:
24 24
                 msg = None

0 notes on commit 3c9aaae

Please sign in to comment.
Something went wrong with that request. Please try again.