Skip to content

Commit

Permalink
Revert changes to widget
Browse files Browse the repository at this point in the history
This was making it impossible to save the form
  • Loading branch information
rolandgeider committed Oct 28, 2023
1 parent 411d7a9 commit 9402f92
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wger/utils/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -116,8 +116,10 @@ def render(self, name, value, attrs=None, choices=(), renderer=None):
value = []

output = [
'<div>', '<input type="text" id="exercise-search" class="form-control" required>',
'</div>', '<div id="exercise-search-log">'
'<div>',
'<input type="text" id="exercise-search" class="form-control">',
'</div>',
'<div id="exercise-search-log">'
]

options = self.render_options(choices, value)
Expand Down

0 comments on commit 9402f92

Please sign in to comment.