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:
parent
075cfa72ba
commit
892b04bf21
|
@ -37,7 +37,7 @@ class Base(models.Model):
|
||||||
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):
|
||||||
|
|
Loading…
Reference in New Issue