Commit 94bc6fdc authored by Ysabella Panghulan's avatar Ysabella Panghulan

added music_video and lyrics in Song model

parent b68de4de
...@@ -14,10 +14,11 @@ class Album(models.Model): ...@@ -14,10 +14,11 @@ class Album(models.Model):
release_date = models.Date('release date') release_date = models.Date('release date')
label = models.CharField(max_length = 255, null=True, blank=True) label = models.CharField(max_length = 255, null=True, blank=True)
song_count = models.IntegerField(default = 0) song_count = models.IntegerField(default = 0)
class Song(models.Model): class Song(models.Model):
song_title = models.CharField(max_length = 50) song_title = models.CharField(max_length = 50)
artist = models.ForeignKey(Artist, on_delete = models.CASCADE) artist = models.ForeignKey(Artist, on_delete = models.CASCADE)
album = models.ForeignKey(Album, on_delete = models.CASCADE) album = models.ForeignKey(Album, on_delete = models.CASCADE)
song_length = models.IntegerField(default = 0) song_length = models.IntegerField(default = 0)
\ No newline at end of file music_video = models.BooleanField(default=False)
lyrics = models.TextField(null=True, blank=True)
\ 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