Fixed some bugs in model syntax of docs/overview.txt -- thanks, Paul Bissex

git-svn-id: http://code.djangoproject.com/svn/django/trunk@605 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-09-02 18:14:44 +00:00
parent 5d7c8a0c4f
commit d31699f227
1 changed files with 6 additions and 6 deletions

View File

@ -27,9 +27,9 @@ solving two years' worth of database-schema problems. Here's a quick example::
return self.full_name
class Article(meta.Model):
pub_date = meta.DateTimeField('pub_date')
headline = meta.CharField('headline', maxlength=200)
article = meta.TextField('article')
pub_date = meta.DateTimeField)
headline = meta.CharField(maxlength=200)
article = meta.TextField()
reporter = meta.ForeignKey(Reporter)
def __repr__(self):
@ -134,9 +134,9 @@ delete objects. It's as easy as adding an extra ``admin`` attribute to your
model classes::
class Article(meta.Model):
pub_date = meta.DateTimeField('pub_date')
headline = meta.CharField('headline', maxlength=200)
article = meta.TextField('article')
pub_date = meta.DateTimeField()
headline = meta.CharField(maxlength=200)
article = meta.TextField()
reporter = meta.ForeignKey(Reporter)
class META:
admin = meta.Admin()