summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
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()