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']