def handle_city(self, data_set): print("-------handle_city-------") item = City() item.name = data_set["name"] country_name = data_set["country_name"] country = Country.objects.filter(name=country_name).last() item.country = country item.save()
def handle_city(self, data_set): print("-------handle_city-------") item = City() item.name = data_set["name"] country_name = data_set["country_name"] country = Country.objects.filter(name=country_name).last() item.country = country item.save()