Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #7999 -- Slightly changed the overview example to disambiguate …

…the use of 'article'. Thanks to Kaell <joshalto@hotmail.com> for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4454bde3c1cfc083915fd3311733b47fe77ac0ae 1 parent 0dc11a0
Russell Keith-Magee authored July 30, 2008

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

  1. 6  docs/overview.txt
6  docs/overview.txt
@@ -33,7 +33,7 @@ quick example::
33 33
     class Article(models.Model):
34 34
         pub_date = models.DateTimeField()
35 35
         headline = models.CharField(max_length=200)
36  
-        article = models.TextField()
  36
+        content = models.TextField()
37 37
         reporter = models.ForeignKey(Reporter)
38 38
 
39 39
         def __unicode__(self):
@@ -95,7 +95,7 @@ is created on the fly, no code generation necessary::
95 95
     # Create an article.
96 96
     >>> from datetime import datetime
97 97
     >>> a = Article(pub_date=datetime.now(), headline='Django is cool',
98  
-    ...     article='Yeah.', reporter=r)
  98
+    ...     content='Yeah.', reporter=r)
99 99
     >>> a.save()
100 100
 
101 101
     # Now the article is in the database.
@@ -135,7 +135,7 @@ your model classes::
135 135
     class Article(models.Model):
136 136
         pub_date = models.DateTimeField()
137 137
         headline = models.CharField(max_length=200)
138  
-        article = models.TextField()
  138
+        content = models.TextField()
139 139
         reporter = models.ForeignKey(Reporter)
140 140
         class Admin: pass
141 141
 

0 notes on commit 4454bde

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