Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allows use of Integer values with RadioChoiceWidget. Related to commit

  • Loading branch information...
commit b4fb7f2ab4f3c362d585a3cc703d68d6e49630dc 1 parent 0a2237b
Josh Jaques authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  CHANGES.txt
  2. +1 −1  deform/templates/radio_choice.pt
2  CHANGES.txt
View
@@ -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"
2  deform/templates/radio_choice.pt
View
@@ -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}"
Please sign in to comment.
Something went wrong with that request. Please try again.