I've defined the following custom widget in forms.py, which over rides the standard HTML to create a "live search" select menu (user can enter free text to search options, useful when there are many options). For this widget to work, the class="selectpicker" class must be applied. How do I apply this class at the widget level?
class LiveSelectWidget(forms.widgets.Select):
template_name = "widgets/live_select.html"
option_template_name = 'widgets/live_select_option.html'