Mercurial > public > sg101
annotate gpp/shoutbox/admin.py @ 137:c7d75cdfea21
Fixing #27, add instructions for MySpace Friend ID on the edit elsewhere links page.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 27 Nov 2009 04:11:12 +0000 |
parents | 777451a98f9d |
children | e1d1a70d312d |
rev | line source |
---|---|
gremmie@1 | 1 """ |
gremmie@1 | 2 This file contains the automatic admin site definitions for the shoutbox models. |
gremmie@1 | 3 """ |
gremmie@1 | 4 from django.contrib import admin |
gremmie@1 | 5 from shoutbox.models import Shout |
bgneal@13 | 6 from shoutbox.models import ShoutFlag |
gremmie@1 | 7 |
gremmie@1 | 8 class ShoutAdmin(admin.ModelAdmin): |
bgneal@13 | 9 list_display = ('shout_date', '__unicode__') |
bgneal@13 | 10 raw_id_fields = ('user', ) |
bgneal@13 | 11 |
bgneal@13 | 12 class ShoutFlagAdmin(admin.ModelAdmin): |
bgneal@13 | 13 list_display = ('__unicode__', 'flag_date', 'get_shout_url') |
bgneal@13 | 14 |
gremmie@1 | 15 |
gremmie@1 | 16 admin.site.register(Shout, ShoutAdmin) |
bgneal@13 | 17 admin.site.register(ShoutFlag, ShoutFlagAdmin) |
bgneal@13 | 18 |
bgneal@13 | 19 # vim: ts=4 sw=4 |