@property
    def title(self):
        title = _('Delivery Report {0}'.format(self.title_month))
        if self.location and self.location.location_type.name.upper() == 'FACILITY':
            return "{0} ({1}) Group {2}".format(self.location.name,
                                                self.location.site_code,
                                                self.location.metadata.get('group', '---'))
        return title
dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/tanzania/reports/delivery.py/DeliveryReport.title/original