annotate gpp/antispam/admin.py @ 563:93f049a241ff

For bitbucket issue #4, deactivate users for spam when accepting flagged user profiles. Also use raw_id_fields on UserProfileFlagAdmin.
author Brian Neal <bgneal@gmail.com>
date Thu, 09 Feb 2012 19:38:03 -0600
parents 28988cce138b
children
rev   line source
bgneal@214 1 """Admin definitions for the antispam application."""
bgneal@214 2
bgneal@214 3 from django.contrib import admin
bgneal@214 4
bgneal@214 5 from antispam.models import SpamPhrase
bgneal@214 6
bgneal@214 7
bgneal@214 8 class SpamPhraseAdmin(admin.ModelAdmin):
bgneal@214 9 search_fields = ('phrase', )
bgneal@214 10
bgneal@214 11
bgneal@214 12 admin.site.register(SpamPhrase, SpamPhraseAdmin)