From d58be228dd78d5a487b823bb652d15284e25ef6f Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 11 Apr 2017 17:47:16 +0100 Subject: [PATCH] Fix new checkboxes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problems: - WTForms expects the value of checkboxes to always be `y` (they don’t work like radio buttons, which is where I copied this code for) - WTForms `BooleanField`s don’t have a checked attribute, they set their data attibute to `True` or `False` --- app/templates/components/checkbox.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/components/checkbox.html b/app/templates/components/checkbox.html index a0edb9c65..0f81c8831 100644 --- a/app/templates/components/checkbox.html +++ b/app/templates/components/checkbox.html @@ -5,8 +5,8 @@ ) %}