mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
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:
parent
a59095af24
commit
7caf21aa2e
5 changed files with 16 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue