Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit d31699f2278ddd35cea3caf68cc83820413adf04 1 parent 5d7c8a0
@adrianholovaty adrianholovaty authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 docs/overview.txt
View
12 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()
Please sign in to comment.
Something went wrong with that request. Please try again.