comparison gpp/messages/admin.py @ 299:c7c427411f03

Fixing #134: put private message text in notification email.
author Brian Neal <bgneal@gmail.com>
date Mon, 10 Jan 2011 04:22:21 +0000
parents dbd703f7d63a
children
comparison
equal deleted inserted replaced
298:4f032a6e21f8 299:c7c427411f03
1 """ 1 """
2 This file contains the automatic admin site definitions for the Message models. 2 This file contains the automatic admin site definitions for the Message models.
3 """ 3 """
4 from django.contrib import admin
4 5
5 from django.contrib import admin
6 from messages.models import Message 6 from messages.models import Message
7 from messages.models import Options 7 from messages.models import Options
8 8
9 admin.site.register(Message) 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)
10 admin.site.register(Options) 18 admin.site.register(Options)