Changeset 18
- Timestamp:
- 07/14/05 11:13:00 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
djangoproject.com/django_website/apps/blog/models/blog.py
r17 r18 9 9 meta.CharField('headline', 'headline', maxlength=200), 10 10 meta.TextField('body', 'body', help_text="Use raw HTML."), 11 meta.CharField('author', 'author', maxlength=100), 11 12 ) 12 13 ordering = (('pub_date', 'DESC'),) 13 14 admin = meta.Admin( 14 15 fields = ( 15 (None, {'fields': ('pub_date', 'slug', ' headline', 'body')}),16 (None, {'fields': ('pub_date', 'slug', 'author', 'headline', 'body')}), 16 17 ), 17 list_display = ('pub_date', 'headline' ),18 list_display = ('pub_date', 'headline', 'author'), 18 19 ) 19 20
