From c1423c04ad45045ea72230113a1e00e31510734c Mon Sep 17 00:00:00 2001
From: Tim Fechner <tim.fechner@hs-hannover.de>
Date: Wed, 6 Dec 2017 15:39:51 +0100
Subject: [PATCH] Fix radiobox label rendering

---
 hshassets/forms/utils.py | 3 ++-
 setup.py                 | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/hshassets/forms/utils.py b/hshassets/forms/utils.py
index 8bd4dc80..c7bc8809 100644
--- a/hshassets/forms/utils.py
+++ b/hshassets/forms/utils.py
@@ -100,7 +100,8 @@ class BulmaFieldMarkup(object):
         choice_markup = ''
         for choice in field:
             choice_markup += cls.label(
-                choice.tag(), choice.choice_label.title(),
+                # concat input field and label here to make the label clickable
+                label=mark_safe('{} {}'.format(choice.tag(), choice.choice_label.title())),
                 for_id=choice.id_for_label, css_class='radio'
             )
         return cls.div_control(mark_safe(choice_markup))
diff --git a/setup.py b/setup.py
index 37a9e4da..0656a0dc 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
 
 setup(
     name='django-hshassets',
-    version='1.4.2',
+    version='1.4.3',
     packages=find_packages(),
     include_package_data=True,
     license='MIT License',
-- 
GitLab