project/scipycon/talk/admin.py
branch2011
changeset 441 1a8ed55cc335
parent 96 178b89a3ca4f
child 442 6f06b1457e55
equal deleted inserted replaced
440:04c3084c412b 441:1a8ed55cc335
     6 
     6 
     7 #scipycon
     7 #scipycon
     8 from .models import Talk
     8 from .models import Talk
     9 
     9 
    10 class TalkAdmin(admin.ModelAdmin):
    10 class TalkAdmin(admin.ModelAdmin):
    11     list_display = ('title', 'speaker', 'topic', 'duration', 'audience', 'approved')
    11     list_display = ('title', 'speaker', 'topic', 'duration', 'audience', 'approved', 'submitted')
    12     list_filter = ('approved', 'audience', 'topic', 'speaker')
    12     list_filter = ('approved', 'audience', 'topic', 'speaker')
    13     search_fields = ('slug', 'title', 'abstract')
    13     search_fields = ('slug', 'title', 'abstract')
    14     prepopulate_from = {'slug': ('title',)}
    14     prepopulate_from = {'slug': ('title',)}
    15     fieldsets = (
    15     fieldsets = (
    16         ('Details', {
    16         ('Details', {