@property
    def settings_context(self):
        key = "%s_config" % self.source
        if hasattr(self.domain_object.commtrack_settings, key):
            return {
                "source_config": getattr(self.domain_object.commtrack_settings, key)._doc,
            }
        else:
            return {}
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/locations/views.py/BaseSyncView.settings_context/original