[Django]-How to use more than one widget in a Django field?

4👍

PasswordInput accepts attrs as well.

login_password = forms.CharField(label=u'password', widget=forms.PasswordInput(render_value=False, attrs={'placeholder': 'password'}))

Leave a comment