Commit 2ab9c149409dff085d7bef022b53ee700961cf46
Merge pull request #27 from collinanderson/patch-1
Updated obsolete maxlength to max_length
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -21,7 +21,7 @@ a Weblog:: | @@ -21,7 +21,7 @@ a Weblog:: | ||
| 21 | from django.db import models | 21 | from django.db import models |
| 22 | 22 | ||
| 23 | class Entry(models.Model): | 23 | class Entry(models.Model): |
| 24 | - title = models.CharField(maxlength=250) | 24 | + title = models.CharField(max_length=250) |
| 25 | body = models.TextField() | 25 | body = models.TextField() |
| 26 | pub_date = models.DateField() | 26 | pub_date = models.DateField() |
| 27 | enable_comments = models.BooleanField() | 27 | enable_comments = models.BooleanField() |
Please
register
or
login
to post a comment