Django

Code

Changeset 18

Show
Ignore:
Timestamp:
07/14/05 11:13:00 (3 years ago)
Author:
adrian
Message:

Added 'author' field to django_website blog.Entry

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • djangoproject.com/django_website/apps/blog/models/blog.py

    r17 r18  
    99        meta.CharField('headline', 'headline', maxlength=200), 
    1010        meta.TextField('body', 'body', help_text="Use raw HTML."), 
     11        meta.CharField('author', 'author', maxlength=100), 
    1112    ) 
    1213    ordering = (('pub_date', 'DESC'),) 
    1314    admin = meta.Admin( 
    1415        fields = ( 
    15             (None, {'fields': ('pub_date', 'slug', 'headline', 'body')}), 
     16            (None, {'fields': ('pub_date', 'slug', 'author', 'headline', 'body')}), 
    1617        ), 
    17         list_display = ('pub_date', 'headline'), 
     18        list_display = ('pub_date', 'headline', 'author'), 
    1819    ) 
    1920