使用小部件作为
PasswordInput
from django import formsclass UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput) class meta: model = User
欢迎分享,转载请注明来源:内存溢出
使用小部件作为
PasswordInput
from django import formsclass UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput) class meta: model = User
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)