Ticket #3409: widgets2.diff
File widgets2.diff, 650 bytes (added by , 18 years ago) |
---|
-
django/newforms/widgets.py
81 81 class PasswordInput(Input): 82 82 input_type = 'password' 83 83 84 def __init__(self, attrs=None, render_value=True): 85 self.attrs = attrs or {} 86 self.render_value = render_value 87 88 def render(self, name, value, attrs=None): 89 if not self.render_value: value=None 90 return super(PasswordInput, self).render(name, value, attrs) 91 84 92 class HiddenInput(Input): 85 93 input_type = 'hidden' 86 94 is_hidden = True