Permalink
Browse files

Allows use of Integer values with RadioChoiceWidget. Related to commit

  • Loading branch information...
1 parent 0a2237b commit b4fb7f2ab4f3c362d585a3cc703d68d6e49630dc Josh Jaques committed Apr 24, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 CHANGES.txt
  2. +1 −1 deform/templates/radio_choice.pt
View
2 CHANGES.txt
@@ -17,7 +17,7 @@ Next release
link of a SequenceWidget. See
https://github.com/Pylons/deform/issues/85 .
-- Allow the use of Integer values with SelectWidget. See
+- Allow the use of Integer values with SelectWidget, and RadioChoiceWidget. See
https://github.com/Pylons/deform/issues/81 .
- CheckedInputWidget and CheckedPasswordWidget now populate the "confirm"
View
2 deform/templates/radio_choice.pt
@@ -3,7 +3,7 @@
<tal:loop tal:repeat="choice field.widget.values">
<tal:def tal:define="(value, title) choice">
<li class="deformSet-item">
- <input tal:attributes="checked value == cstruct;
+ <input tal:attributes="checked str(value) == cstruct;
class field.widget.css_class"
type="radio"
name="${field.oid}"

0 comments on commit b4fb7f2

Please sign in to comment.