Merge pull request #222 from avenet/patch-1
Add max_length attribute to person CharField
This commit is contained in:
commit
1a7cd8a5a9
|
@ -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::
|
||||
|
|
Loading…
Reference in New Issue