Monday, March 27, 2017

Re: Django Captcha Ajax call not working

Hi Melvyn thanx for ur reply,

this is my form.

class AjaxForm(forms.ModelForm):
    captcha = CaptchaField()
    class Meta:
        model = ajaxModel
        exclude = []

class ajaxModel(models.Model):
    testfield = models.TextField(null=True, blank=True)

If i don't use a ajaxmodel a get an error, so testfield is just a dummy field, just to avoid error.

valerio

On Monday, March 27, 2017 at 2:22:44 PM UTC+2, Melvyn Sopacua wrote:

On Monday 27 March 2017 04:46:06 valerio orfano wrote:

> {% if field.name = 'captcha' %}

 

It may not make a difference if you only have one visible field, but this is not a comparison.

--

Melvyn Sopacua

--
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-users@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/5d0cb24a-7790-4bca-80b7-7a04bfaa0165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment