Jump to >

This documentation covers Djblets 2.0. You can see the latest Djblets documentation or all other versions.

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