Commit 0dd04113 authored by Ian Rafael T. Aragoza's avatar Ian Rafael T. Aragoza

Changed __str__ of Song model.

parent 839a1d41
Pipeline #2716 failed with stages
......@@ -34,7 +34,7 @@ class Song(models.Model):
song_length = models.DurationField()
def __str__(self):
return '{} - {}'.format(self.artist, self.song_title)
return '{} - {} ({})'.format(self.artist, self.song_title, self.song_length)
def get_absolute_url(self):
return reverse('song_detail', args=[str(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