summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2013-02-04 23:32:46 -0600
committerDan McGee <dpmcgee@gmail.com>2013-02-04 23:32:46 -0600
commit266f8e2a43563f002f349c8049374b3c2128f945 (patch)
tree39acac8d89ad6e03b6d0bbc1715cfc927188b727
parenta636098778177cbb99915ecc3602dc8032dfa5eb (diff)
downloadwebsite-master.tar.gz
website-master.zip
Add date_hierarchy to blog post adminHEADmaster
-rw-r--r--blog/admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/blog/admin.py b/blog/admin.py
index 4a99cfc..185a41a 100644
--- a/blog/admin.py
+++ b/blog/admin.py
@@ -25,6 +25,7 @@ class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'pub_date', 'mod_date',
'public', 'comments_enabled')
list_filter = ('pub_date', 'public', 'comments_enabled')
+ date_hierarchy = 'pub_date'
def disable_comments(self, request, queryset):
for obj in queryset: