Commit 740c544b authored by Jayson Lim's avatar Jayson Lim

Defined a __str__ method for the song title attribute

parent e5ac2a61
...@@ -31,3 +31,5 @@ class Song(models.Model): ...@@ -31,3 +31,5 @@ class Song(models.Model):
music_video = models.BooleanField(default=True) music_video = models.BooleanField(default=True)
lyrics = models.TextField(null=True, blank=True) lyrics = models.TextField(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