Jump to >

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

djblets.recaptcha.templatetags.djblets_recaptcha

recaptcha_js()[source]

Render the reCAPTCHA JavaScript tag.

Returns:The rendered tag.
Return type:django.utils.safestring.SafeText
recaptcha_form_field(form)[source]

Return the reCAPTCHA field from the specified form.

This can be used to render the reCAPTCHA widget.

Parameters:form (django.forms.forms.Form) – The form that is being rendered.
Returns:The bound reCAPTCHA field. This will render as its widget in a template.
Return type:django.forms.boundfield.BoundField