--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/32c46521-92be-40be-820a-fb5fe63c4620%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
Regards,Andréas
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
It may not make a difference if you only have one visible field, but this is not a comparison.
--
Melvyn Sopacua
Hi,
assigns 'captcha' to field.name and returns if that succeeded. So it's always true. You probably mean:
{% if field.name == 'captcha' %}
From what you describe, testfield shows up and your template code says it shouldn't show up.
However, when debugging a problem, always reduce to the simplest case, so try with this template code:
<form id ="captcha_form" class="captcha_form" action="" method="post">{%csrf_token%}
{{ form }}
<input type="submit" id="button" class="button" onclick="captcha()" value="Invio"/>
</form>
> >> Melvyn Sopacua
--
Melvyn Sopacua