Merge pull request #222 from avenet/patch-1

Add max_length attribute to person CharField
This commit is contained in:
Bradley Ayers 2015-02-15 06:32:23 +11:00
commit 1a7cd8a5a9
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ We're going to run through creating a tutorial app. Let's start with a simple mo
# tutorial/models.py
class Person(models.Model):
name = models.CharField(verbose_name="full name")
name = models.CharField(verbose_name="full name", max_length=200)
Add some data so you have something to display in the table. Now write a view
to pass a ``Person`` queryset into a template::