# CCS CS Lab Facebook Admin # # Douglas Thrift # # $Id$ from django.contrib import admin from ccscslab.facebook.models import Publication, Section, TemplateBundle, User class UserAdmin(admin.ModelAdmin): list_display = ('id', 'person', 'session', 'session_expiry', 'updated') admin.site.register(User, UserAdmin) class PublicationAdmin(admin.ModelAdmin): list_display = ('user', 'published') admin.site.register(Publication, PublicationAdmin) class TemplateBundleAdmin(admin.ModelAdmin): list_display = ('name', 'bundle_id') admin.site.register(TemplateBundle, TemplateBundleAdmin) class SectionAdmin(admin.ModelAdmin): list_display = ('name', 'path', 'tab', 'position') list_filter = ('tab',) admin.site.register(Section, SectionAdmin)