Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Gary Wilson Jr. authored December 02, 2007
8  tests/regressiontests/string_lookup/models.py
@@ -18,26 +18,26 @@ def __unicode__(self):
18 18
         return "Bar %s" % self.place.name
19 19
 
20 20
 class Whiz(models.Model):
21  
-    name = models.CharField(max_length = 50)
  21
+    name = models.CharField(max_length=50)
22 22
 
23 23
     def __unicode__(self):
24 24
         return "Whiz %s" % self.name
25 25
 
26 26
 class Child(models.Model):
27 27
     parent = models.OneToOneField('Base')
28  
-    name = models.CharField(max_length = 50)
  28
+    name = models.CharField(max_length=50)
29 29
 
30 30
     def __unicode__(self):
31 31
         return "Child %s" % self.name
32 32
 
33 33
 class Base(models.Model):
34  
-    name = models.CharField(max_length = 50)
  34
+    name = models.CharField(max_length=50)
35 35
 
36 36
     def __unicode__(self):
37 37
         return "Base %s" % self.name
38 38
 
39 39
 class Article(models.Model):
40  
-    name = models.CharField(maxlength = 50)
  40
+    name = models.CharField(max_length=50)
41 41
     text = models.TextField()
42 42
 
43 43
     def __str__(self):

0 notes on commit 892b04b

Please sign in to comment.
Something went wrong with that request. Please try again.