testfield is where i type my captcha, sorry

On Monday, March 27, 2017 at 2:38:15 PM UTC+2, valerio orfano wrote:
>
> 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+unsubscr...@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/3a51903e-742c-4156-ad3d-7db6ce90ba12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to