mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +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
|
@ -15,7 +15,7 @@ class Author(models.Model):
|
|||
return self.name
|
||||
|
||||
class Publisher(models.Model):
|
||||
name = models.CharField(max_length=300)
|
||||
name = models.CharField(max_length=255)
|
||||
num_awards = models.IntegerField()
|
||||
|
||||
def __unicode__(self):
|
||||
|
@ -23,7 +23,7 @@ class Publisher(models.Model):
|
|||
|
||||
class Book(models.Model):
|
||||
isbn = models.CharField(max_length=9)
|
||||
name = models.CharField(max_length=300)
|
||||
name = models.CharField(max_length=255)
|
||||
pages = models.IntegerField()
|
||||
rating = models.FloatField()
|
||||
price = models.DecimalField(decimal_places=2, max_digits=6)
|
||||
|
@ -36,7 +36,7 @@ class Book(models.Model):
|
|||
return self.name
|
||||
|
||||
class Store(models.Model):
|
||||
name = models.CharField(max_length=300)
|
||||
name = models.CharField(max_length=255)
|
||||
books = models.ManyToManyField(Book)
|
||||
original_opening = models.DateTimeField()
|
||||
friday_night_closing = models.TimeField()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue