Mercurial > public > sg101
diff gpp/shoutbox/admin.py @ 13:777451a98f9d
Shoutbox work: shouts now have absolute URLs. Shouts can now be flagged as abuse. Minor tweak to breadcrumbs css. Added flag date to comments admin.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 16 Apr 2009 02:00:17 +0000 |
parents | dbd703f7d63a |
children | e1d1a70d312d |
line wrap: on
line diff
--- a/gpp/shoutbox/admin.py Wed Apr 15 01:13:17 2009 +0000 +++ b/gpp/shoutbox/admin.py Thu Apr 16 02:00:17 2009 +0000 @@ -3,9 +3,17 @@ """ from django.contrib import admin from shoutbox.models import Shout +from shoutbox.models import ShoutFlag class ShoutAdmin(admin.ModelAdmin): - list_display = ('shout_date', '__unicode__') - raw_id_fields = ('user', ) + list_display = ('shout_date', '__unicode__') + raw_id_fields = ('user', ) + +class ShoutFlagAdmin(admin.ModelAdmin): + list_display = ('__unicode__', 'flag_date', 'get_shout_url') + admin.site.register(Shout, ShoutAdmin) +admin.site.register(ShoutFlag, ShoutFlagAdmin) + +# vim: ts=4 sw=4