(self)
return filters
Return the dict filter configurations to be used by the
        ReportConfiguration that this form produces.
Return the dict filter configurations to be used by the
        ReportConfiguration that this form produces.
Return the dict filter configurations to be used by the ReportConfiguration that this form produces .
def _report_filters(self):
        """
        Return the dict filter configurations to be used by the
        ReportConfiguration that this form produces.
        """
        def _make_report_filter(conf, index):
            property = self.data_source_properties[conf["property"]]
            return property.to_report_filter(conf, index)

        user_filter_configs = self.cleaned_data['user_filters']
        default_filter_configs = self.cleaned_data['default_filters']
        filters = [_make_report_filter(f, i) for i, f in enumerate(user_filter_configs + default_filter_configs)]
        if self.source_type == 'case':
            # The UI doesn't support specifying "choice_list" filters, only "dynamic_choice_list" filters.
            # But, we want to make the open/closed filter a cleaner "choice_list" filter, so we do that here.
            self._convert_closed_filter_to_choice_list(filters)
        return filters
def _report_filters ( self ) : def _make_report_filter ( conf , index ) : property = self . data_source_properties [ conf [ "property" ] ] return property . to_report_filter ( conf , index ) user_filter_configs = self . cleaned_data [ 'user_filters' ] default_filter_configs = self . cleaned_data [ 'default_filters' ] filters = [ _make_report_filter ( f , i ) for i , f in enumerate ( user_filter_configs + default_filter_configs ) ] if self . source_type == 'case' : # The UI doesn't support specifying "choice_list" filters, only "dynamic_choice_list" filters. # But, we want to make the open/closed filter a cleaner "choice_list" filter, so we do that here. self . _convert_closed_filter_to_choice_list ( filters ) return filters