euscan_captcha: fix captcha

This commit is contained in:
Corentin Chary 2013-04-02 10:17:11 +02:00
parent bbc91972f9
commit 0225553eeb

View File

@ -1,5 +1,10 @@
from captcha.fields import ReCaptchaField from captcha.fields import ReCaptchaField
from registration.forms import RegistrationForm from registration.forms import RegistrationForm
from django.conf import settings
class RegistrationFormCaptcha(RegistrationForm): class RegistrationFormCaptcha(RegistrationForm):
captcha = ReCaptchaField(attrs={'theme': 'white'}) captcha = ReCaptchaField(
public_key=settings.RECAPTCHA_PUBLIC_KEY,
private_key=settings.RECAPTCHA_PRIVATE_KEY,
use_ssl=True,
attrs={'theme': 'white'})