summaryrefslogtreecommitdiff
path: root/app/unused_apps/essays/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-12-02 15:02:12 -0500
committerluxagraf <sng@luxagraf.net>2020-12-02 15:02:12 -0500
commitab8055b5cab2523d925f59c65bc38df103a26991 (patch)
tree29e4597bc0d86d658f574c0c4f0b036351a68742 /app/unused_apps/essays/admin.py
parent87f692178a6e30719c564076f00c206642f36ce6 (diff)
deleted old apps and media
Diffstat (limited to 'app/unused_apps/essays/admin.py')
-rw-r--r--app/unused_apps/essays/admin.py47
1 files changed, 0 insertions, 47 deletions
diff --git a/app/unused_apps/essays/admin.py b/app/unused_apps/essays/admin.py
deleted file mode 100644
index ed39ca3..0000000
--- a/app/unused_apps/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')