view gpp/antispam/admin.py @ 320:66cc2f8c4603

Removed a raise of CommandError, which was left over from when this code started life as a Django management command.
author Brian Neal <bgneal@gmail.com>
date Tue, 08 Feb 2011 03:53:10 +0000
parents 28988cce138b
children
line wrap: on
line source
"""Admin definitions for the antispam application."""

from django.contrib import admin

from antispam.models import SpamPhrase


class SpamPhraseAdmin(admin.ModelAdmin):
    search_fields = ('phrase', )


admin.site.register(SpamPhrase, SpamPhraseAdmin)