|
|
|
@ -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) |
|
|
|
|
|
|
|
|