project/scipycon/talk/admin.py
branch2011
changeset 442 6f06b1457e55
parent 441 1a8ed55cc335
equal deleted inserted replaced
441:1a8ed55cc335 442:6f06b1457e55
     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', 'submitted')
    11     list_display = ('title', 'speaker', 'topic', 'duration', 'audience', 'approved', 'submitted')
    12     list_filter = ('approved', 'audience', 'topic', 'speaker')
    12     list_filter = ('approved', 'submitted', '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', {
    17             'fields': ('slug', 'title', 'abstract', 'speaker')
    17             'fields': ('slug', 'title', 'abstract', 'speaker')