Mercurial > public > sg101
annotate gpp/messages/admin.py @ 490:f0f3966ea44f
For #233, switched to asynchronous loading of the social media sharing javascript. Also switched to Facebook's javascript SDK instead of using an iframe for the like/share button.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 20 Oct 2011 00:36:37 +0000 |
parents | c7c427411f03 |
children |
rev | line source |
---|---|
gremmie@1 | 1 """ |
gremmie@1 | 2 This file contains the automatic admin site definitions for the Message models. |
gremmie@1 | 3 """ |
bgneal@299 | 4 from django.contrib import admin |
gremmie@1 | 5 |
gremmie@1 | 6 from messages.models import Message |
gremmie@1 | 7 from messages.models import Options |
gremmie@1 | 8 |
bgneal@299 | 9 |
bgneal@299 | 10 class MessageAdmin(admin.ModelAdmin): |
bgneal@299 | 11 list_display = ('sender', 'receiver', 'send_date', 'subject') |
bgneal@299 | 12 raw_id_fields = ('sender', 'receiver') |
bgneal@299 | 13 exclude = ('html', ) |
bgneal@299 | 14 date_hierarchy = 'send_date' |
bgneal@299 | 15 list_display_links = ('subject', ) |
bgneal@299 | 16 |
bgneal@299 | 17 admin.site.register(Message, MessageAdmin) |
gremmie@1 | 18 admin.site.register(Options) |