diff options
author | lxf <sng@luxagraf.net> | 2021-10-30 17:18:57 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2021-10-30 17:18:57 -0400 |
commit | 7b628e9cde7fe2babe16523b7d1d44df0c468203 (patch) | |
tree | d2303d4b6fb316ff32bf58c2afebc6fcd7f30a1e /app/posts/admin.py | |
parent | 940da61accfd124a2dfc90fb585434203f39685b (diff) |
posts: made podcast posttype and templates
Diffstat (limited to 'app/posts/admin.py')
-rw-r--r-- | app/posts/admin.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/posts/admin.py b/app/posts/admin.py index cac3954..27ec145 100644 --- a/app/posts/admin.py +++ b/app/posts/admin.py @@ -33,10 +33,10 @@ class PostAdmin(OSMGeoAdmin): field = super(PostAdmin, self).formfield_for_dbfield(db_field, **kwargs) return field - list_display = ('title', 'site', 'post_type', 'pub_date', 'template_name', 'status',) + list_display = ('title', 'post_type', 'pub_date', 'status',) search_fields = ['title', 'body_markdown'] prepopulated_fields = {"slug": ('title',)} - list_filter = ('site', 'post_type', 'pub_date', 'enable_comments', 'status') + list_filter = ('post_type', 'pub_date', 'enable_comments', 'status') filter_horizontal = ('related', 'books',) fieldsets = ( ('Entry', { @@ -47,10 +47,8 @@ class PostAdmin(OSMGeoAdmin): ('pub_date', 'status', 'post_type'), ('slug', 'enable_comments',), 'dek', - 'meta_description', - 'template_name', - ('featured_image','related'), - 'site' + 'meta_description', 'issue', + ('featured_image', 'featured_audio', 'related'), ), 'classes': ( 'show', |