def fake_json_ids(self, json_str):
        """
        Replace real ids with fakes ones in the JSON fixture

        Do this on the serialized JSON string since it's a simple string replace
        :param json_str:
        :return:
        """
        for fake_id, actual_id in self.fake_id_map.items():
            json_str = json_str.replace(actual_id, fake_id)

        return json_str

        Replace real ids with fakes ones in the JSON fixture

        Do this on the serialized JSON string since it's a simple string replace
        :param json_str:
        :return:
        
tests/apps/example/management/commands/regenerate_test_fixtures.py