Re: Why does my django form with recaptcha send data even empty the recaptcha?

2021-03-13 Thread Sergei Sokov
html {% csrf_token %} {{form.choice_services}} {{form.name}} {{form.telephone_number}} {{form.email}} {{form.message}} {{form.contact_text}} {{ form.captcha }}

Re: Why does my django form with recaptcha send data even empty the recaptcha?

2021-03-12 Thread Chetan Ganji
Remove below line and try again self.fields['captcha'].widget.attrs['required'] = 'True' If the problem persists, try some js or jquery validation in frontend On Thu, Mar 11, 2021, 9:19 PM Gabriel Araya Garcia < gabrielaraya2...@gmail.com> wrote: > Camarada Sokov: > Your code is very

Re: Why does my django form with recaptcha send data even empty the recaptcha?

2021-03-11 Thread Gabriel Araya Garcia
Camarada Sokov: Your code is very difficult to understand at first sight. I did not know about ReCaptchaField(). But, is interesting to learn something new. Recards, Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos from Santiago de Chile El jue, 11 mar 2021 a las 12:40, Sergei

Why does my django form with recaptcha send data even empty the recaptcha?

2021-03-11 Thread Sergei Sokov
I put the google recaptcha V2 to my django project form. It looks like working, but if I leave empty the recaptcha checkbox my form is sent still. forms.py from django import forms from captcha.fields import ReCaptchaField from django.forms import Textarea from .models import * class