Django: How do I add arbitrary html attributes to input fields on a form?

Check this page

city = forms.CharField(widget=forms.TextInput(attrs={'autocomplete':'off'}))

Leave a Comment