def _add_record(self, item): location = item['location'] for school in item['schools']: school_title = school['title'] for result in school['results']: ntc = ParsedNTC() ntc.location = location ntc.school_title = school_title ntc.full_name = result['full_name'] ntc.math = result['math'] ntc.physics = result['physics'] ntc.chemistry = result['chemistry'] ntc.geometry = result['geometry'] ntc.biology = result['biology'] ntc.geography = result['geography'] ntc.history = result['history'] ntc.eng_lang = result['eng_lang'] ntc.ger_lang = result['ger_lang'] ntc.fr_lang = result['fr_lang'] ntc.kyr_lang = result['kyr_lang'] ntc.rus_lang = result['rus_lang'] ntc.uzb_lang = result['uzb_lang'] ntc.informatics = result['informatics'] ntc.civics = result['civics'] ntc.notes = result['notes'] ntc.integration_queue = self.integration_queue self.objects_to_save.append(ntc)