updated homepage file

parent bceb0806
......@@ -7,7 +7,7 @@ class Artist(models.Model):
bio = models.TextField(max_length = 700, default = "no default")
def __str__(self):
return self.Artist
return self.artist_name
class Album(models.Model):
album_name = models.CharField(max_length = 50, unique = True, default = "")
......@@ -18,7 +18,7 @@ class Album(models.Model):
song_count = models.IntegerField
def __str__(self):
return self.Album
return self.album_name
class Song(models.Model):
song_title = models.CharField(max_length = 50, unique = True, default = "")
......@@ -29,6 +29,6 @@ class Song(models.Model):
lyrics = models.TextField
def __str__(self):
return self.Song
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