SyntaxFix
Write A Post
Hire A Developer
Questions
Here is Simple way to alter in view. add below in view just before passing it into template.
form = MyForm(instance = instance.obj) form.fields['email'].widget.attrs = {'class':'here_class_name'}