Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  django_website/apps/blog/models/blog.py
5  django_website/apps/blog/models/blog.py
@@ -8,13 +8,14 @@ class Entry(meta.Model):
8 8
         meta.SlugField('slug', 'slug', unique_for_date='pub_date'),
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
 
20 21
     def __repr__(self):

0 notes on commit c92ae09

Please sign in to comment.
Something went wrong with that request. Please try again.