def render(self):
        if self.is_disabled:
            return ""
        self.context.update({
            'slug': self.slug,
            'label': self.label,
            'css_id': 'report_filter_%s' % self.slug,
            'css_class': self.css_class,
            'css_label_class': self.css_label,
            'css_field_class': self.css_field,
            'help_text': self.help_text,
            'help_style_bubble': self.help_style_bubble,
        })
        filter_context = self.filter_context
        if not (filter_context, dict):
            raise ValueError("filter_context must return a dict.")
        self.context.update(filter_context)
        return render_to_string(self.get_bootstrap_template(), self.context)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/filters/base.py/BaseReportFilter.render/original