Skip to content

Commit

Permalink
fix bug in setting value
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Dec 18, 2009
1 parent 43add10 commit 3104878
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ def render(self):
return '<input %s/>' % attrs

def set_value(self, value):
if value:
self.checked = True
self.checked = bool(value)

def get_value(self):
return self.checked
Expand Down

0 comments on commit 3104878

Please sign in to comment.