comparison messages/admin.py @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/messages/admin.py@c7c427411f03
children 4a4fa174a0ec
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
1 """
2 This file contains the automatic admin site definitions for the Message models.
3 """
4 from django.contrib import admin
5
6 from messages.models import Message
7 from messages.models import Options
8
9
10 class MessageAdmin(admin.ModelAdmin):
11 list_display = ('sender', 'receiver', 'send_date', 'subject')
12 raw_id_fields = ('sender', 'receiver')
13 exclude = ('html', )
14 date_hierarchy = 'send_date'
15 list_display_links = ('subject', )
16
17 admin.site.register(Message, MessageAdmin)
18 admin.site.register(Options)