Fixed a use of `maxlength`, refs #2101.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2007-12-02 01:45:59 +00:00
parent 075cfa72ba
commit 892b04bf21
1 changed files with 4 additions and 4 deletions

View File

@ -18,26 +18,26 @@ class Bar(models.Model):
return "Bar %s" % self.place.name return "Bar %s" % self.place.name
class Whiz(models.Model): class Whiz(models.Model):
name = models.CharField(max_length = 50) name = models.CharField(max_length=50)
def __unicode__(self): def __unicode__(self):
return "Whiz %s" % self.name return "Whiz %s" % self.name
class Child(models.Model): class Child(models.Model):
parent = models.OneToOneField('Base') parent = models.OneToOneField('Base')
name = models.CharField(max_length = 50) name = models.CharField(max_length=50)
def __unicode__(self): def __unicode__(self):
return "Child %s" % self.name return "Child %s" % self.name
class Base(models.Model): class Base(models.Model):
name = models.CharField(max_length = 50) name = models.CharField(max_length=50)
def __unicode__(self): def __unicode__(self):
return "Base %s" % self.name return "Base %s" % self.name
class Article(models.Model): class Article(models.Model):
name = models.CharField(maxlength = 50) name = models.CharField(max_length=50)
text = models.TextField() text = models.TextField()
def __str__(self): def __str__(self):