comparison antispam/__init__.py @ 918:886234943aed

Antispam app refactor. For Django 1.7.7 upgrade.
author Brian Neal <bgneal@gmail.com>
date Mon, 06 Apr 2015 20:14:10 -0500
parents 988782c6ce6c
children
comparison
equal deleted inserted replaced
917:0365fdbb4d78 918:886234943aed
1 from django.contrib.auth import views as auth_views 1 default_app_config = 'antispam.apps.AntiSpamConfig'
2
3 from antispam.decorators import log_auth_failures
4 import antispam.receivers
5 2
6 SPAM_PHRASE_KEY = "antispam.spam_phrases" 3 SPAM_PHRASE_KEY = "antispam.spam_phrases"
7 BUSTED_MESSAGE = ("Your post has tripped our spam filter. Your account has " 4 BUSTED_MESSAGE = ("Your post has tripped our spam filter. Your account has "
8 "been suspended pending a review of your post. If this was a mistake " 5 "been suspended pending a review of your post. If this was a mistake "
9 "then we apologize; your account will be restored shortly.") 6 "then we apologize; your account will be restored shortly.")
10
11 # Install rate limiting on auth login
12 auth_views.login = log_auth_failures('Login')(auth_views.login)