Skip to content

Commit

Permalink
Fix check order of CheckboxSelectMultiple and RadioSelect (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm authored Jun 27, 2023
1 parent 31081b4 commit cb4d68b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bootstrap3/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@ def fix_clearable_file_input(self, html):
return f'<div class="row bootstrap3-multi-input"><div class="col-xs-12">{html}</div></div>'

def post_widget_render(self, html):
if isinstance(self.widget, RadioSelect):
html = self.list_to_class(html, "radio")
elif isinstance(self.widget, CheckboxSelectMultiple):
if isinstance(self.widget, CheckboxSelectMultiple):
html = self.list_to_class(html, "checkbox")
elif isinstance(self.widget, RadioSelect):
html = self.list_to_class(html, "radio")
elif isinstance(self.widget, SelectDateWidget):
html = self.fix_date_select_input(html)
elif isinstance(self.widget, ClearableFileInput):
Expand Down

0 comments on commit cb4d68b

Please sign in to comment.