Mercurial > public > sg101
annotate 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 |
rev | line source |
---|---|
gremmie@1 | 1 ''' |
gremmie@1 | 2 This file contains the automatic admin site definitions for the Bulletins models. |
gremmie@1 | 3 ''' |
gremmie@1 | 4 |
gremmie@1 | 5 from django.contrib import admin |
gremmie@1 | 6 from bulletins.models import Bulletin |
gremmie@1 | 7 |
gremmie@1 | 8 class BulletinAdmin(admin.ModelAdmin): |
gremmie@1 | 9 list_display = ('title', 'start_date', 'end_date', 'is_enabled') |
gremmie@1 | 10 list_filter = ('start_date', 'end_date', 'is_enabled') |
gremmie@1 | 11 search_fields = ('title', 'text') |
gremmie@1 | 12 date_hierarchy = 'start_date' |
gremmie@1 | 13 |
gremmie@1 | 14 class Media: |
gremmie@1 | 15 js = ('js/tiny_mce/tiny_mce.js', 'js/tiny_mce_init_admin.js') |
gremmie@1 | 16 |
gremmie@1 | 17 |
gremmie@1 | 18 admin.site.register(Bulletin, BulletinAdmin) |