blob: 0e56f59f0d42b3ad2e9bcdcca9b9611742f23259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
from django.contrib import admin
from utils.widgets import AdminImageWidget, LGEntryForm
from .models import (
WiredNote,
WiredPost
)
print(WiredPost)
@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']
class Media:
js = ('next-prev-links.js',)
|