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', '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')