Make sure that all uses of max_length in the test suite use values smaller than 255. If we use max_length > 255 the test suite can't be run on MySQL 4.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-05-07 18:06:22 +00:00
parent a59095af24
commit 7caf21aa2e
5 changed files with 16 additions and 16 deletions

View file

@ -7,7 +7,7 @@ class PersonWithDefaultMaxLengths(models.Model):
avatar = models.FilePathField()
class PersonWithCustomMaxLengths(models.Model):
email = models.EmailField(max_length=384)
vcard = models.FileField(upload_to='/tmp', max_length=1024)
homepage = models.URLField(max_length=256)
avatar = models.FilePathField(max_length=512)
email = models.EmailField(max_length=250)
vcard = models.FileField(upload_to='/tmp', max_length=250)
homepage = models.URLField(max_length=250)
avatar = models.FilePathField(max_length=250)