Commit 68450b59 authored by Julia Anishka's avatar Julia Anishka

added more attributes to song model

parent 44a6fdae
......@@ -25,4 +25,9 @@ class Song(models.Model):
song_title = models.CharField(max_length = 50)
artist = models.ForeignKey(Artist, on_delete = models.CASCADE)
album = models.ForeignKey(Album, on_delete = models.CASCADE)
song_length = models.IntegerField(default=0)
\ No newline at end of file
song_length = models.IntegerField(default = 0)
music_video = models.BooleanField(null=True, blank=True)
lyrics = models.TextField(max_length = 5000, null=True, blank=True)
def __str__(self):
return self.song_title
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