(request, fields)
return
Used to dynamically load captcha field into forms
Used to dynamically load captcha field into forms
Used to dynamically load captcha field into forms
def add_captcha_field(request, fields):
    """Used to dynamically load captcha field into forms"""

    # Trusted users do not need a captcha check
    if request.user.is_authenticated and request.user.profile.trusted:
        return
    # Mutates the fields dict to add captcha field.
    if settings.RECAPTCHA_PRIVATE_KEY:
        fields["captcha"] = ReCaptchaField(widget=ReCaptchaWidget())
    return
def add_captcha_field ( request , fields ) : # Trusted users do not need a captcha check if request . user . is_authenticated and request . user . profile . trusted : return # Mutates the fields dict to add captcha field. if settings . RECAPTCHA_PRIVATE_KEY : fields [ "captcha" ] = ReCaptchaField ( widget = ReCaptchaWidget ( ) ) return