from django.contrib import admin from utils.widgets import TagListFilter from links.models import Link class LinkAdmin(admin.ModelAdmin): list_display = ('title', 'admin_link', 'pub_date', 'status') search_fields = ['title', 'description', 'url'] list_filter = ['status', TagListFilter] fieldsets = ( (None, { 'fields': ( 'title', 'url', 'description', ) }), ('Details', { 'fields': ( 'pub_date', 'tags', 'status' ), 'classes': 'collapse' }), ) admin.site.register(Link, LinkAdmin)