gremmie@1: """ gremmie@1: This file contains the automatic admin site definitions for the shoutbox models. gremmie@1: """ gremmie@1: from django.contrib import admin gremmie@1: from shoutbox.models import Shout bgneal@13: from shoutbox.models import ShoutFlag gremmie@1: gremmie@1: class ShoutAdmin(admin.ModelAdmin): bgneal@13: list_display = ('shout_date', '__unicode__') bgneal@13: raw_id_fields = ('user', ) bgneal@13: bgneal@13: class ShoutFlagAdmin(admin.ModelAdmin): bgneal@13: list_display = ('__unicode__', 'flag_date', 'get_shout_url') bgneal@13: gremmie@1: gremmie@1: admin.site.register(Shout, ShoutAdmin) bgneal@13: admin.site.register(ShoutFlag, ShoutFlagAdmin) bgneal@13: bgneal@13: # vim: ts=4 sw=4