summaryrefslogtreecommitdiff
path: root/bak/unused_apps/notes/admin.py
blob: eafd0dc7aea36544dcf684e6d23fdaa5d3cd2649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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')