def _nav_link(indicator): params = copy(self.request_params) params["indicators"] = self.indicator_set.slug params["indicator"] = indicator.slug return format_html(u'<a href="{next}">{val}</a>', val=self.count(indicator), next=url_and_params( IndicatorClientList.get_url( domain=self.domain, render_as=self.render_next), params))
def _fmt_result(item_config, value): params = copy(self.request_params) params['category'] = item_config['slug'] params['date'] = self.get_date().strftime(DATE_FORMAT) return format_html( u'<a href="{next}">{val}</a>', val=value, next=url_and_params( VaccinationClientList.get_url(self.domain, render_as=self.render_next), params))
def _nav_link(indicator): params = copy(self.request_params) params['indicator'] = indicator.slug del params['next_report'] return format_html( u'{chart}<a href="{next}">{val}</a>', val=self.get_indicator_value(indicator), chart=self.get_chart(indicator), next=url_and_params( IndicatorClientList.get_url(self.domain, render_as=self.render_next), params))