blob: 643ca73bd5204680c5faddcdfa1557881da340aa (
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
|
from django.contrib import admin
from utils.widgets import AdminImageWidget, LGEntryForm
from .models import (
WiredNote,
WiredPost,
WiredUpdate
)
@admin.register(WiredPost)
class WiredPostAdmin(admin.ModelAdmin):
list_display = ('title', 'date_last_pub', 'category', 'update_frequency', 'needs_update', 'post_status')
search_fields = ['title']
list_filter = ['post_status', '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')
|