Jump to >

djblets.recaptcha.widgets

class RecaptchaWidget(attrs=None)[source]

Bases: django.forms.widgets.Widget

A widget for rendering the reCAPTCHA form field.

render(*args, **kwargs)[source]

Render the reCAPTCHA form field.

Parameters:
  • *args (tuple) – Unused positional arguments.
  • **kwargs (dict) – Unused keyword arguments.
Returns:

The rendered reCAPTCHA widget.

Return type:

django.utils.safestring.SafeText