How do I change the 'name' HTML attribute of a Django Form field?

后端 未结 0 1952
太阳男子
太阳男子 2021-01-23 23:41

I have a Django 3.0 form

# forms.py
class SignupForm(UserCreationForm):
    email = forms.EmailField()

This renders as the HTML element

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题