Commit 304d8351 authored by Nicholo Pardines's avatar Nicholo Pardines

Changed song_length to a duration field

parent fa5f2e20
No preview for this file type
......@@ -40,7 +40,7 @@ class Song(models.Model):
song_title = models.CharField(max_length=50, default="")
artist = models.ForeignKey(Artist, on_delete=models.CASCADE, default=None, null=True, blank=True)
album = models.ForeignKey(Album, on_delete=models.CASCADE, default=None, null=True, blank=True)
song_length = models.IntegerField(default=0)
song_length = models.DurationField(default=0)
music_video = models.BooleanField(default=False)
lyrics = models.TextField(default="")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment