Ticket #11303: hidden_input.diff
File hidden_input.diff, 527 bytes (added by , 15 years ago) |
---|
-
django/forms/widgets.py
233 233 class HiddenInput(Input): 234 234 input_type = 'hidden' 235 235 is_hidden = True 236 def render(self, name, value, attrs=None): 237 if isinstance(value,bool): 238 value = value and 'on' or '' 239 return super(HiddenInput,self).render(name,value,attrs) 236 240 237 241 class MultipleHiddenInput(HiddenInput): 238 242 """