X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/174cf7969627acdc1642f2eda012499b218abac8..5fce7f7cad84675043cf56fce5163e1553d5b6fa:/src/search/fields.py diff --git a/src/search/fields.py b/src/search/fields.py index 07e50d7ba..18a5c1564 100644 --- a/src/search/fields.py +++ b/src/search/fields.py @@ -3,6 +3,7 @@ # from django import forms from django.forms.utils import flatatt +from django.forms.widgets import RadioSelect from django.utils.encoding import smart_str from django.utils.safestring import mark_safe from json import dumps @@ -63,3 +64,8 @@ class JQueryAutoCompleteSearchField(forms.CharField): kwargs['widget'] = JQueryAutoCompleteSearchWidget(options) super(JQueryAutoCompleteSearchField, self).__init__(*args, **kwargs) + + + +class InlineRadioWidget(RadioSelect): + option_template_name = 'search/inline_radio_widget_option.html'