@classmethod
    def for_domain(cls, domain):
        res = cache_core.cached_view(
            cls.get_db(),
            "by_domain_doc_type_date/view",
            key=[domain, 'Dhis2Settings', None],
            reduce=False,
            include_docs=True,
            wrapper=cls.wrap)
        return res[0] if len(res) > 0 else None
dataset/ETHPy150Open dimagi/commcare-hq/custom/dhis2/models.py/Dhis2Settings.for_domain/original