Mercurial > public > sg101
annotate gpp/bulletins/admin.py @ 5:63696b279e35
Display news links and send to friend on the summary page. Use icons.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 19:45:17 +0000 |
parents | dbd703f7d63a |
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) |