def save_wine_from_row(wine_row): wine = Wine() wine.id = wine_row[1] wine.name = wine_row[2] wine.genres = wine_row[3] print(wine.id, wine.name, wine.genres) wine.save()
def save_wine_from_row(wine_row): wine = Wine() wine.id = wine_row[0] wine.name = wine_row[1] wine.country_origin = wine_row[3] wine.year = wine_row[2] wine.save()
def save_wine_from_row(wine_row): wine = Wine() wine.id = wine_row[0] wine.name = wine_row[1] wine.save()