Mercurial > public > sg101
view gpp/mailer/admin.py @ 293:c92fb89dbc7d
Fixed a bug where if you tried to delete a topic the new last post might be in that topic, so a cascading delete would occur and the forum would get deleted.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 29 Dec 2010 04:56:53 +0000 |
parents | aef00df91165 |
children |
line wrap: on
line source
"""This file contains the automatic admin site definitions for the mailer application.""" from django.contrib import admin from mailer.models import Message class MessageAdmin(admin.ModelAdmin): list_display = ('from_address', 'to_address', 'subject', 'creation_date') list_display_links = ('subject', ) admin.site.register(Message, MessageAdmin)