Django

Code

Show
Ignore:
Timestamp:
07/30/08 05:08:12 (4 months ago)
Author:
russellm
Message:

Fixed #7999 -- Slightly changed the overview example to disambiguate the use of 'article'. Thanks to Kaell <joshalto@hotmail.com> for the suggestion.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/overview.txt

    r7294 r8150  
    3434        pub_date = models.DateTimeField() 
    3535        headline = models.CharField(max_length=200) 
    36         article = models.TextField() 
     36        content = models.TextField() 
    3737        reporter = models.ForeignKey(Reporter) 
    3838 
     
    9696    >>> from datetime import datetime 
    9797    >>> a = Article(pub_date=datetime.now(), headline='Django is cool', 
    98     ...     article='Yeah.', reporter=r) 
     98    ...     content='Yeah.', reporter=r) 
    9999    >>> a.save() 
    100100 
     
    136136        pub_date = models.DateTimeField() 
    137137        headline = models.CharField(max_length=200) 
    138         article = models.TextField() 
     138        content = models.TextField() 
    139139        reporter = models.ForeignKey(Reporter) 
    140140        class Admin: pass