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