gremmie@1: """ gremmie@1: This file contains the automatic admin site definitions for the Message models. gremmie@1: """ bgneal@299: from django.contrib import admin gremmie@1: gremmie@1: from messages.models import Message gremmie@1: from messages.models import Options gremmie@1: bgneal@299: bgneal@299: class MessageAdmin(admin.ModelAdmin): bgneal@299: list_display = ('sender', 'receiver', 'send_date', 'subject') bgneal@299: raw_id_fields = ('sender', 'receiver') bgneal@299: exclude = ('html', ) bgneal@299: date_hierarchy = 'send_date' bgneal@299: list_display_links = ('subject', ) bgneal@299: bgneal@299: admin.site.register(Message, MessageAdmin) gremmie@1: admin.site.register(Options)