-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
widget attrs doesn't work #144
Comments
@ziima this might be in the realm of your recent changes, what is your take on this? |
I just want add a placeholder at the captcha field captcha = CaptchaField(error_messages={'invalid': e_message}, the output_format is ok, but the placeholder doesn't work |
Using django-simple-captcha 0.5.7, django 1.11 and python 2.7 following works for me: from django import forms
from captcha.fields import CaptchaField, CaptchaTextInput
class MyForm(forms.Form):
captcha = CaptchaField(widget=CaptchaTextInput(attrs={'placeholder': 'SMEGHEAD!'}))
form = MyForm()
unicode(form) @shuai336 |
captcha = CaptchaField(error_messages={ widget=CaptchaTextInput(attrs={'placeholder': message}))
the placeholder doesn't work
The text was updated successfully, but these errors were encountered: