gremmie@1: ''' gremmie@1: This file contains the automatic admin site definitions for the Bulletins models. gremmie@1: ''' gremmie@1: gremmie@1: from django.contrib import admin gremmie@1: from bulletins.models import Bulletin gremmie@1: gremmie@1: class BulletinAdmin(admin.ModelAdmin): gremmie@1: list_display = ('title', 'start_date', 'end_date', 'is_enabled') gremmie@1: list_filter = ('start_date', 'end_date', 'is_enabled') gremmie@1: search_fields = ('title', 'text') gremmie@1: date_hierarchy = 'start_date' gremmie@1: gremmie@1: class Media: gremmie@1: js = ('js/tiny_mce/tiny_mce.js', 'js/tiny_mce_init_admin.js') gremmie@1: gremmie@1: gremmie@1: admin.site.register(Bulletin, BulletinAdmin)