def retire(self):
        if DELETED not in self['doc_type']:
            self['doc_type'] += DELETED
        if DELETED not in self['base_doc']:
            self['base_doc'] += DELETED
        self.save()
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/repeaters/models.py/Repeater.retire/original