password in form django code example Example: django form password field password = models.CharField(max_length=20, widget=forms.PasswordInput)