comparison gpp/gcalendar/admin.py @ 139:e04d91babfcf

Close #30. Create an admin dashboard to see pending content and requests for admin action.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 Nov 2009 22:33:15 +0000
parents dbd703f7d63a
children bc657962941e
comparison
equal deleted inserted replaced
138:7ea842744a57 139:e04d91babfcf
9 from gcalendar.admin_views import google_sync 9 from gcalendar.admin_views import google_sync
10 10
11 11
12 class EventAdmin(admin.ModelAdmin): 12 class EventAdmin(admin.ModelAdmin):
13 list_display = ('what', 'user', 'start_date', 'where', 'date_submitted', 13 list_display = ('what', 'user', 'start_date', 'where', 'date_submitted',
14 'status', 'needs_approval') 14 'status', 'is_approved')
15 list_filter = ('start_date', 'status') 15 list_filter = ('start_date', 'status')
16 search_fields = ('what', 'where', 'description') 16 search_fields = ('what', 'where', 'description')
17 raw_id_fields = ('user', ) 17 raw_id_fields = ('user', )
18 exclude = ('html', 'google_id') 18 exclude = ('html', 'google_id')
19 save_on_top = True 19 save_on_top = True