summaryrefslogtreecommitdiff
path: root/app/notes/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/notes/admin.py')
-rw-r--r--app/notes/admin.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/notes/admin.py b/app/notes/admin.py
new file mode 100644
index 0000000..5409200
--- /dev/null
+++ b/app/notes/admin.py
@@ -0,0 +1,34 @@
+from django.contrib import admin
+
+from utils.widgets import AdminImageWidget, LGEntryForm, TagListFilter
+
+from .models import (
+ LuxNote,
+)
+
+
+@admin.register(LuxNote)
+class LuxNoteAdmin(admin.ModelAdmin):
+ list_display = ('title', 'admin_link', 'date_created')
+ search_fields = ['title', 'description', 'url']
+ list_filter = [TagListFilter]
+ fieldsets = (
+ (None, {
+ 'fields': (
+ 'title',
+ 'url',
+ 'description',
+ 'body_markdown'
+ 'tags',
+ )
+ }),
+ ('Details', {
+ 'fields': (
+ 'date_created ',
+ ),
+ 'classes': 'collapse'
+ }),
+ )
+
+ class Media:
+ js = ('next-prev-links.js',)