fix use of checked checkbox/radiobuttons in forms

This commit is contained in:
Romain Bignon 2014-03-29 20:00:14 +01:00
commit dd68bfd3fc

View file

@ -384,7 +384,7 @@ class Form(OrderedDict):
continue
try:
if inp.attrib['type'] in ('checkbox', 'radio') and not 'checked' in inp:
if inp.attrib['type'] in ('checkbox', 'radio') and not 'checked' in inp.attrib:
continue
except KeyError:
pass