I want to create password as password field in views.
models.py:
class User(models.Model):
username = models.CharField(max_length=100)
password = models.CharField(max_length=50)
forms.py:
class UserForm(ModelForm):
class Meta:
model = User
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…