Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added 'author' field to django_website blog.Entry

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@18 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c92ae095af9bcc49ed894e34d37c38dcfd4f5f6f 1 parent efcd127
adrian authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django_website/apps/blog/models/blog.py
5 django_website/apps/blog/models/blog.py
View
@@ -8,13 +8,14 @@ class Entry(meta.Model):
meta.SlugField('slug', 'slug', unique_for_date='pub_date'),
meta.CharField('headline', 'headline', maxlength=200),
meta.TextField('body', 'body', help_text="Use raw HTML."),
+ meta.CharField('author', 'author', maxlength=100),
)
ordering = (('pub_date', 'DESC'),)
admin = meta.Admin(
fields = (
- (None, {'fields': ('pub_date', 'slug', 'headline', 'body')}),
+ (None, {'fields': ('pub_date', 'slug', 'author', 'headline', 'body')}),
),
- list_display = ('pub_date', 'headline'),
+ list_display = ('pub_date', 'headline', 'author'),
)
def __repr__(self):
Please sign in to comment.
Something went wrong with that request. Please try again.