From 0cd7f26fac90410a223b6ed5c6bf0bf77745167e Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Mon, 21 Oct 2024 07:07:28 +0000 Subject: [PATCH] =?UTF-8?q?Arreglo=20campo=20a=C3=B1o=20y=20visualizaci?= =?UTF-8?q?=C3=B3n=20de=20albumes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReyMotaAppsDj/K8S/Makefile | 2 +- ReyMotaAppsDj/K8S/Makefile.local | 2 +- ReyMotaAppsDj/reymota/lyrics/forms.py | 5 +---- ReyMotaAppsDj/reymota/lyrics/models.py | 2 +- ReyMotaAppsDj/reymota/templates/lyrics/detalle_album.html | 4 ++-- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ReyMotaAppsDj/K8S/Makefile b/ReyMotaAppsDj/K8S/Makefile index 3d73633..163c8f1 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.19 +export IMG_VERSION = 0.20 export IMG_NGINX_VERSION = 1.0 # limpia todo diff --git a/ReyMotaAppsDj/K8S/Makefile.local b/ReyMotaAppsDj/K8S/Makefile.local index 8ef1c7a..633db82 100644 --- a/ReyMotaAppsDj/K8S/Makefile.local +++ b/ReyMotaAppsDj/K8S/Makefile.local @@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') export REGISTRY=localhost:30500 #export REGISTRY=registry.reymota.es -export IMG_VERSION = 0.51 +export IMG_VERSION = 0.54 export IMG_NGINX_VERSION = 1.0 # limpia todo diff --git a/ReyMotaAppsDj/reymota/lyrics/forms.py b/ReyMotaAppsDj/reymota/lyrics/forms.py index 64a25ea..bda5204 100644 --- a/ReyMotaAppsDj/reymota/lyrics/forms.py +++ b/ReyMotaAppsDj/reymota/lyrics/forms.py @@ -30,10 +30,7 @@ class AlbumForm(forms.ModelForm): class SongForm(forms.ModelForm): class Meta: model = Song - fields = ['title', 'artist', 'album', 'year', 'lyrics'] - - year = forms.DateField( - widget=forms.DateInput(attrs={'type': 'date', 'class': 'form-control'})) + fields = ['title', 'artist', 'album', 'year', 'pista', 'lyrics'] artist = forms.ModelChoiceField( queryset=Artista.objects.all(), diff --git a/ReyMotaAppsDj/reymota/lyrics/models.py b/ReyMotaAppsDj/reymota/lyrics/models.py index 0a8e317..5233f83 100644 --- a/ReyMotaAppsDj/reymota/lyrics/models.py +++ b/ReyMotaAppsDj/reymota/lyrics/models.py @@ -34,7 +34,7 @@ class Song(models.Model): title = models.CharField(max_length=200) artist = models.ForeignKey(Artista, on_delete=models.CASCADE) album = models.ForeignKey(Album, on_delete=models.CASCADE) - year = models.PositiveBigIntegerField(default=current_year(), validators=[MinValueValidator(1984), max_value_current_year]) + year = models.DecimalField(max_digits=4, decimal_places=0, blank=False, null=False) lyrics = models.TextField() pista = models.DecimalField(max_digits=5, decimal_places=0, blank=True, null=True) diff --git a/ReyMotaAppsDj/reymota/templates/lyrics/detalle_album.html b/ReyMotaAppsDj/reymota/templates/lyrics/detalle_album.html index e96c8b8..08764db 100644 --- a/ReyMotaAppsDj/reymota/templates/lyrics/detalle_album.html +++ b/ReyMotaAppsDj/reymota/templates/lyrics/detalle_album.html @@ -25,7 +25,7 @@