summaryrefslogtreecommitdiff
path: root/app/unused_apps/notes/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/unused_apps/notes/admin.py')
-rw-r--r--app/unused_apps/notes/admin.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/unused_apps/notes/admin.py b/app/unused_apps/notes/admin.py
new file mode 100644
index 0000000..eafd0dc
--- /dev/null
+++ b/app/unused_apps/notes/admin.py
@@ -0,0 +1,28 @@
+from django.contrib import admin
+from notes.models import Note
+from utils.widgets import LGEntryForm, OLAdminBase
+
+
+@admin.register(Note)
+class NoteAdmin(OLAdminBase):
+ form = LGEntryForm
+ prepopulated_fields = {"slug": ('title',)}
+ list_display = ('slug', 'pub_date')
+ fieldsets = (
+ ('Note', {
+ 'fields': (
+ ('title', 'slug'),
+ 'body_markdown',
+ 'pub_date',
+ ),
+ 'classes': (
+ 'show',
+ 'extrapretty',
+ 'wide'
+ )
+ }
+ ),
+ )
+
+ class Media:
+ js = ('image-loader.js', 'next-prev-links.js')