@classmethod
    def cleanup_relation_cache(self):
        self.relation_cache = {}
This deletes the relation cache as it is a class-level variable which
dataset/ETHPy150Open pboehm/django-data-migration/data_migration/migration.py/Migration.cleanup_relation_cache