Ticket #3409: widgets.diff

File widgets.diff, 576 bytes (added by scott@…, 18 years ago)

widgets.py with PrivatePasswordInput

  • django/newforms/widgets.py

     
    8181class PasswordInput(Input):
    8282    input_type = 'password'
    8383
     84class PrivatePasswordInput(PasswordInput):
     85    "A Password widget that does not output its value"
     86    def render(self, name, value, attrs=None):
     87        return super(PrivatePasswordInput, self).render(name, None, attrs)
     88
    8489class HiddenInput(Input):
    8590    input_type = 'hidden'
    8691    is_hidden = True
Back to Top