Mercurial > public > sg101
view gpp/antispam/admin.py @ 231:a2d388ed106e
Guard against the request object not having a user attribute in my Who's online middleware. This can happen if a redirect is issued before the authentication middleware gets to run.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 14 Jul 2010 02:35:39 +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)