Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 892b04bf2165bab4875e38691c42131fff40b8ef 1 parent 075cfa7
@gdub gdub authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/regressiontests/string_lookup/models.py
View
8 tests/regressiontests/string_lookup/models.py
@@ -18,26 +18,26 @@ def __unicode__(self):
return "Bar %s" % self.place.name
class Whiz(models.Model):
- name = models.CharField(max_length = 50)
+ name = models.CharField(max_length=50)
def __unicode__(self):
return "Whiz %s" % self.name
class Child(models.Model):
parent = models.OneToOneField('Base')
- name = models.CharField(max_length = 50)
+ name = models.CharField(max_length=50)
def __unicode__(self):
return "Child %s" % self.name
class Base(models.Model):
- name = models.CharField(max_length = 50)
+ name = models.CharField(max_length=50)
def __unicode__(self):
return "Base %s" % self.name
class Article(models.Model):
- name = models.CharField(maxlength = 50)
+ name = models.CharField(max_length=50)
text = models.TextField()
def __str__(self):
Please sign in to comment.
Something went wrong with that request. Please try again.