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 bgneal@7: from django.conf import settings bgneal@7: 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: bgneal@7: js = settings.GPP_THIRD_PARTY_JS['tiny_mce'] gremmie@1: gremmie@1: gremmie@1: admin.site.register(Bulletin, BulletinAdmin)