diff --git a/ReyMotaAppsDj/K8S/Makefile b/ReyMotaAppsDj/K8S/Makefile index 54e8fbd..d339bf5 100644 --- a/ReyMotaAppsDj/K8S/Makefile +++ b/ReyMotaAppsDj/K8S/Makefile @@ -1,7 +1,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') #export REGISTRY=registry.cube.local export REGISTRY=registry.reymota.es -export IMG_VERSION = 0.48 +export IMG_VERSION = 0.49 export IMG_NGINX_VERSION = 1.0 # limpia todo diff --git a/ReyMotaAppsDj/reymota/lyrics/management/commands/importar_albumes.py b/ReyMotaAppsDj/reymota/lyrics/management/commands/importar_albumes.py index be3f4ba..e748e15 100644 --- a/ReyMotaAppsDj/reymota/lyrics/management/commands/importar_albumes.py +++ b/ReyMotaAppsDj/reymota/lyrics/management/commands/importar_albumes.py @@ -29,7 +29,7 @@ class Command(BaseCommand): artista = Artista.objects.get(id=album_data["artist"]) creado = Album.objects.create( - artista_id=artista.id, + artist_id=artista.id, name=album_data['name'], year=album_data['year'], cover_image=album_data['cover_image'], diff --git a/ReyMotaAppsDj/reymota/lyrics/management/commands/importar_canciones.py b/ReyMotaAppsDj/reymota/lyrics/management/commands/importar_canciones.py index 3e26630..7856e40 100644 --- a/ReyMotaAppsDj/reymota/lyrics/management/commands/importar_canciones.py +++ b/ReyMotaAppsDj/reymota/lyrics/management/commands/importar_canciones.py @@ -1,6 +1,6 @@ import json from django.core.management.base import BaseCommand -from lyrics.models import Cancion, Album +from lyrics.models import Song, Album, Artista class Command(BaseCommand): @@ -27,11 +27,12 @@ class Command(BaseCommand): for cancion_data in datos: try: album = Album.objects.get(id=cancion_data["album"]) + artista = Artista.objects.get(id=cancion_data["artist"]) - creado = Cancion.objects.create( + creado = Song.objects.create( album_id=album.id, title=cancion_data['title'], - artist=cancion_data['artist'], + artist_id=artista.id, year=cancion_data['year'], lyrics=cancion_data['lyrics'], pista=cancion_data['pista'],