We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195bd20 commit afafca1Copy full SHA for afafca1
1 file changed
jsweb/forms.py
@@ -196,8 +196,9 @@ def __call__(self, **kwargs):
196
if checked:
197
radio_attrs['checked'] = 'checked'
198
199
+ radio_attrs_str = " ".join(f'{k}="{v}"' for k, v in radio_attrs.items())
200
html.append('<li>')
- html.append(f'<input {" ".join(f"{k}=\"{v}\"" for k, v in radio_attrs.items())}>')
201
+ html.append(f'<input {radio_attrs_str}>')
202
html.append(f'<label for="{option_id}">{label}</label>')
203
html.append('</li>')
204
html.append('</ul>')
0 commit comments