]> git.ipfire.org Git - thirdparty/patchwork.git/commit
forms: 'False' != False
authorStephen Finucane <stephen@that.guru>
Fri, 23 Dec 2016 19:40:59 +0000 (19:40 +0000)
committerStephen Finucane <stephen@that.guru>
Fri, 23 Dec 2016 20:24:22 +0000 (20:24 +0000)
commit40496980e1883e872d50e615f7c1bf5ac0577f0c
tree8298a8372f5afe0e88c12d829f073c21210fc7b3
parent9109e012a1efd99a9158ab7d909342709f0ee783
forms: 'False' != False

Forms cast boolean values to strings, and attempting to coerce using the
'bool' function does not correctly return them to true boolean values.
Correct this by doing a string comparison instead.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 0abde97aa ("forms: Use TypedChoiceField")
patchwork/forms.py