djblets.recaptcha.mixins¶
Mixins for providing reCAPTCHA validation support in forms.
See Using reCAPTCHA for a guide on using reCAPTCHA validation.
-
class
RecaptchaFormMixin
(*args, **kwargs)[source]¶ Bases:
django.forms.forms.Form
A form mixin for providing reCAPTCHA verification.
If other mixins are used, this should be the first in the list of base classes to ensure the reCAPTCHA field is the last.
Users of this mixin must set the
request
attribute as the currentHttpRequest
instance beforeclean()
is called.