Mercurial > public > sg101
annotate antispam/admin.py @ 1166:130ac1e98cf4
More V3 forums tweaking.
Adding attachments is working now.
Adding a post via ajax is working.
Still need to display attachments on posts.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Aug 2017 15:55:54 -0500 |
parents | ee87ea74d46b |
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) |