Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  docs/overview.txt
12  docs/overview.txt
@@ -27,9 +27,9 @@ solving two years' worth of database-schema problems. Here's a quick example::
27 27
             return self.full_name
28 28
 
29 29
     class Article(meta.Model):
30  
-        pub_date = meta.DateTimeField('pub_date')
31  
-        headline = meta.CharField('headline', maxlength=200)
32  
-        article = meta.TextField('article')
  30
+        pub_date = meta.DateTimeField)
  31
+        headline = meta.CharField(maxlength=200)
  32
+        article = meta.TextField()
33 33
         reporter = meta.ForeignKey(Reporter)
34 34
 
35 35
         def __repr__(self):
@@ -134,9 +134,9 @@ delete objects. It's as easy as adding an extra ``admin`` attribute to your
134 134
 model classes::
135 135
 
136 136
     class Article(meta.Model):
137  
-        pub_date = meta.DateTimeField('pub_date')
138  
-        headline = meta.CharField('headline', maxlength=200)
139  
-        article = meta.TextField('article')
  137
+        pub_date = meta.DateTimeField()
  138
+        headline = meta.CharField(maxlength=200)
  139
+        article = meta.TextField()
140 140
         reporter = meta.ForeignKey(Reporter)
141 141
         class META:
142 142
             admin = meta.Admin()

0 notes on commit d31699f

Please sign in to comment.
Something went wrong with that request. Please try again.