comparison gpp/gcalendar/admin.py @ 228:d77e0dc772ad

Implement #88; add option to create a new forum thread from a new calendar entry.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Jul 2010 21:03:41 +0000
parents b4305e18d3af
children 3fa61786abf1
comparison
equal deleted inserted replaced
227:423c39ee44e0 228:d77e0dc772ad
10 import bio.badges 10 import bio.badges
11 11
12 12
13 class EventAdmin(admin.ModelAdmin): 13 class EventAdmin(admin.ModelAdmin):
14 list_display = ('what', 'user', 'start_date', 'where', 'date_submitted', 14 list_display = ('what', 'user', 'start_date', 'where', 'date_submitted',
15 'status', 'is_approved') 15 'status', 'is_approved', 'google_html')
16 list_filter = ('start_date', 'status') 16 list_filter = ('start_date', 'status')
17 date_hierarchy = 'start_date' 17 date_hierarchy = 'start_date'
18 search_fields = ('what', 'where', 'description') 18 search_fields = ('what', 'where', 'description')
19 raw_id_fields = ('user', ) 19 raw_id_fields = ('user', )
20 exclude = ('html', 'google_id') 20 exclude = ('html', 'google_id', 'google_url')
21 save_on_top = True 21 save_on_top = True
22 actions = ('approve_events', ) 22 actions = ('approve_events', )
23 23
24 pending_states = { 24 pending_states = {
25 Event.NEW: Event.NEW_APRV, 25 Event.NEW: Event.NEW_APRV,