@classmethod
    def add_custom_export(cls, domain, export_id):
        group = cls.get_for_domain(domain)
        if export_id not in group.custom_export_ids:
            group.custom_export_ids.append(export_id)
            group.save()
        return group
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/models.py/HQGroupExportConfiguration.add_custom_export/original