summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-09-02 18:14:44 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-09-02 18:14:44 +0000
commitd31699f2278ddd35cea3caf68cc83820413adf04 (patch)
treec020dabddd87e3af4153f3b4c5b8ccd45c9e4b76 /docs
parent5d7c8a0c4fa9d8ffc60d064a67c069eea9064761 (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/overview.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/overview.txt b/docs/overview.txt
index 90e3db9302..f2c5d23fa8 100644
--- a/docs/overview.txt
+++ b/docs/overview.txt
@@ -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()