aboutsummaryrefslogtreecommitdiff
blob: 7e84816fb6875f132cd115e97ca970cda91c4c99 (plain)
1
2
3
4
5
6
7
8
9
10
from captcha.fields import ReCaptchaField
from registration.forms import RegistrationForm
from django.conf import settings

class RegistrationFormCaptcha(RegistrationForm):
    captcha = ReCaptchaField(
        public_key=settings.RECAPTCHA_PUBLIC_KEY,
        private_key=settings.RECAPTCHA_PRIVATE_KEY,
        use_ssl=True,
        attrs={'theme': 'white'})