project/kiwipycon/talk/admin.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Wed, 09 Dec 2009 22:57:53 +0530
changeset 53 cc2604e0333c
parent 1 fda1c66b25f9
permissions -rw-r--r--
Added template file for list of talks.

# -*- coding: utf-8 -*-
from __future__ import absolute_import

#django.contrib
from django.contrib import admin

#kiwipycon
from .models import Talk

class TalkAdmin(admin.ModelAdmin):
    list_display = ('title', 'speaker', 'topic', 'duration', 'audience', 'approved')
    list_filter = ('approved', 'audience', 'topic', 'speaker')
    search_fields = ('slug', 'title', 'abstract')
    prepopulate_from = {'slug': ('title',)}
    fieldsets = (
        ('Details', {
            'fields': ('slug', 'title', 'abstract', 'speaker')
        }),
        ('Information', {
            'fields': ('topic', 'duration', 'audience', 'approved')
        }),
    )
admin.site.register(Talk, TalkAdmin)