diff options
author | luxagraf <sng@luxagraf.net> | 2019-10-07 15:27:00 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-10-07 15:27:00 -0400 |
commit | 4fec1159612fad17a7385ba8aadc4a4b165d5aa9 (patch) | |
tree | d413ea25e7c09efb29c4e80b8ffb3ca7c229a514 /app/essays/admin.py | |
parent | 9cdfb6ec377fa534c1203c1af46662c2a1ff6f61 (diff) |
added new posts stuff and changed name of src posts
Diffstat (limited to 'app/essays/admin.py')
-rw-r--r-- | app/essays/admin.py | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/app/essays/admin.py b/app/essays/admin.py deleted file mode 100644 index ed39ca3..0000000 --- a/app/essays/admin.py +++ /dev/null @@ -1,47 +0,0 @@ -from django.contrib import admin - -from utils.widgets import LGEntryForm - -from .models import Essay - - -@admin.register(Essay) -class EssayAdmin(admin.ModelAdmin): - form = LGEntryForm - list_display = ('title', 'pub_date', 'enable_comments', 'status') - list_filter = ('pub_date', 'enable_comments', 'status') - prepopulated_fields = {"slug": ('title',)} - fieldsets = ( - ('Entry', { - 'fields': ( - 'title', - 'sub_title', - 'body_markdown', - ('pub_date', 'status'), - 'meta_description', - ('slug', 'enable_comments', 'has_code'), - ), - 'classes': ( - 'show', - 'extrapretty', - 'wide' - ) - }), - ('meta', { - 'fields': ( - 'originally_published_by', - 'originally_published_by_url', - 'afterword', - 'preamble', - ('field_notes', 'books'), - ), - 'classes': ( - 'hide', - 'extrapretty', - 'wide' - ) - }), - ) - - class Media: - js = ('image-loader.js', 'next-prev-links.js') |