def report_context(self): context = { 'reports': [self.get_report_context(dp) for dp in self.data_providers], 'title': self.title, 'split': self.split, 'r_filters': self.report_filters(), 'fpr_filters': self.fpr_report_filters(), 'exportable': self.is_exportable, 'location_id': self.request.GET.get('location_id'), 'slugs': filter_slugs_by_role(self.request.couch_user, self.domain) } return context
def report_context(self): context = { 'reports': [self.get_report_context(dp) for dp in self.data_providers], 'title': self.title, 'subtitle': self.report_subtitles, 'split': self.split, 'r_filters': self.report_filters(), 'fpr_filters': self.fpr_report_filters(), 'exportable': self.is_exportable, 'emailable': self.emailable, 'location_id': self.request.GET.get('location_id'), 'slugs': filter_slugs_by_role(self.request.couch_user, self.domain), 'startdate': self.datespan.startdate, 'enddate': self.datespan.enddate, } return context
def report_context(self): context = super(StockStatusMapReport, self).report_context context["context"]["slugs"] = filter_slugs_by_role(self.request.couch_user, self.domain) return context
def report_context(self): context = super(StockStatusMapReport, self).report_context context['context']['slugs'] = filter_slugs_by_role( self.request.couch_user, self.domain) return context