bob@17: """ bob@17: Automatic admin definitions for the models in the bands application. bob@17: bob@17: """ bob@17: from django.contrib import admin bob@17: from news.models import News bob@17: bob@22: class NewsAdmin(admin.ModelAdmin): bob@22: list_filter = ['date'] bob@22: search_fields = ['title', 'content'] bob@22: bob@22: admin.site.register(News, NewsAdmin)