Skip to content

Commit

Permalink
Although... use the public API.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Feb 5, 2013
1 parent 25ff942 commit 645d301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tw2/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CheckBox(InputField):

def prepare(self):
super(CheckBox, self).prepare()
checked = self.validator._convert_to_python(self.value)
checked = self.validator.to_python(self.value)
self.safe_modify('attrs')
self.attrs['checked'] = checked and 'checked' or None
self.attrs['value'] = None
Expand Down

0 comments on commit 645d301

Please sign in to comment.