2013-09-29 10:49:41 +02:00
|
|
|
from django.conf import settings
|
|
|
|
|
2012-10-29 12:46:37 +01:00
|
|
|
from captcha.fields import ReCaptchaField
|
|
|
|
from registration.forms import RegistrationForm
|
|
|
|
|
2013-09-29 10:49:41 +02:00
|
|
|
class RecaptchaRegistrationForm(RegistrationForm):
|
2013-04-02 10:17:11 +02:00
|
|
|
captcha = ReCaptchaField(
|
|
|
|
public_key=settings.RECAPTCHA_PUBLIC_KEY,
|
|
|
|
private_key=settings.RECAPTCHA_PRIVATE_KEY,
|
|
|
|
use_ssl=True,
|
|
|
|
attrs={'theme': 'white'})
|