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