Mercurial > public > sg101
diff gpp/antispam/admin.py @ 214:28988cce138b
Implement #83: a string filter facility like NukeSeSentinel. It currently isn't hooked up to anything. Will do that in #84.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 14 May 2010 02:19:48 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/antispam/admin.py Fri May 14 02:19:48 2010 +0000 @@ -0,0 +1,12 @@ +"""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)