Ticket #3409: widgets.diff
File widgets.diff, 576 bytes (added by , 18 years ago) |
---|
-
django/newforms/widgets.py
81 81 class PasswordInput(Input): 82 82 input_type = 'password' 83 83 84 class 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 84 89 class HiddenInput(Input): 85 90 input_type = 'hidden' 86 91 is_hidden = True