euscan-ng/euscanwww/euscan_captcha/forms.py
Corentin Chary 8c6bdebcab fixes
2013-09-29 11:01:09 +02:00

12 lines
364 B
Python

from django.conf import settings
from captcha.fields import ReCaptchaField
from registration.forms import RegistrationForm
class RecaptchaRegistrationForm(RegistrationForm):
captcha = ReCaptchaField(
public_key=settings.RECAPTCHA_PUBLIC_KEY,
private_key=settings.RECAPTCHA_PRIVATE_KEY,
use_ssl=True,
attrs={'theme': 'white'})