comparison gpp/bulletins/admin.py @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children ca66189c7c44
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 '''
2 This file contains the automatic admin site definitions for the Bulletins models.
3 '''
4
5 from django.contrib import admin
6 from bulletins.models import Bulletin
7
8 class BulletinAdmin(admin.ModelAdmin):
9 list_display = ('title', 'start_date', 'end_date', 'is_enabled')
10 list_filter = ('start_date', 'end_date', 'is_enabled')
11 search_fields = ('title', 'text')
12 date_hierarchy = 'start_date'
13
14 class Media:
15 js = ('js/tiny_mce/tiny_mce.js', 'js/tiny_mce_init_admin.js')
16
17
18 admin.site.register(Bulletin, BulletinAdmin)