Changeset 8150 for django/trunk/docs/overview.txt
- Timestamp:
- 07/30/08 05:08:12 (4 months ago)
- Files:
-
- django/trunk/docs/overview.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/overview.txt
r7294 r8150 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 … … 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 … … 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
