Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a 'summary' field to django_website blog entries

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@46 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bafec3cf4a395fba78c5df60820e7228be994ee2 1 parent 0e5b799
adrian authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django_website/apps/blog/models/blog.py
3  django_website/apps/blog/models/blog.py
View
@@ -7,6 +7,7 @@ class Entry(meta.Model):
meta.DateTimeField('pub_date', 'publication date'),
meta.SlugField('slug', 'slug', unique_for_date='pub_date'),
meta.CharField('headline', 'headline', maxlength=200),
+ meta.TextField('summary', 'summary', help_text="Use raw HTML."),
meta.TextField('body', 'body', help_text="Use raw HTML."),
meta.CharField('author', 'author', maxlength=100),
)
@@ -14,7 +15,7 @@ class Entry(meta.Model):
get_latest_by = 'pub_date'
admin = meta.Admin(
fields = (
- (None, {'fields': ('pub_date', 'slug', 'author', 'headline', 'body')}),
+ (None, {'fields': ('pub_date', 'slug', 'author', 'headline', 'summary', 'body')}),
),
list_display = ('pub_date', 'headline', 'author'),
)
Please sign in to comment.
Something went wrong with that request. Please try again.