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
29
30
31
|
from django.contrib import admin
from utils.widgets import AdminImageWidget, LGEntryForm
from .models import (
WiredNote,
WiredPost,
WiredUpdate,
GTDNote,
GTDProject
)
@admin.register(WiredPost)
class WiredPostAdmin(admin.ModelAdmin):
list_display = ('title', 'url', 'date_last_pub', 'category', 'update_frequency', 'needs_update', 'post_status')
search_fields = ['title']
list_filter = ['post_status', 'author', 'post_type', 'update_frequency']
filter_horizontal = ('update_schedule',)
class Media:
js = ('next-prev-links.js',)
@admin.register(WiredUpdate)
class WiredUpdateAdmin(admin.ModelAdmin):
list_display = ('name', 'date')
@admin.register(GTDNote)
class GTDNoteAdmin(admin.ModelAdmin):
list_display = ('title', 'project','url', 'note_type' )
list_filter = ['project', 'note_type']
|