view gpp/shoutbox/admin.py @ 63:5899e308cdb3

Sigh, changed the donations data format because it seems to be different than the stand-alone IPN tester. The month name doesn't have a dot after it.
author Brian Neal <bgneal@gmail.com>
date Sat, 27 Jun 2009 21:40:04 +0000
parents 777451a98f9d
children e1d1a70d312d
line wrap: on
line source
"""
This file contains the automatic admin site definitions for the shoutbox models.
"""
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', )

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