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