From 9402f922d59697ad8a3415d52822cf6e0d4f7dbe Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Sat, 28 Oct 2023 15:58:05 +0200 Subject: [PATCH] Revert changes to widget This was making it impossible to save the form --- wger/utils/widgets.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wger/utils/widgets.py b/wger/utils/widgets.py index 6d6f9b59f..400b98e73 100644 --- a/wger/utils/widgets.py +++ b/wger/utils/widgets.py @@ -37,9 +37,9 @@ from django.utils.safestring import mark_safe from django.utils.translation import gettext as _ - logger = logging.getLogger(__name__) + # # Date and time related fields # @@ -116,8 +116,10 @@ def render(self, name, value, attrs=None, choices=(), renderer=None): value = [] output = [ - '
', '', - '
', '
' + '
', + '', + '
', + '
' ] options = self.render_options(choices, value)