Commit 5ba693ae authored by Nics De Vega's avatar Nics De Vega

modified str return values for models

parent 24a3ad2e
...@@ -7,7 +7,7 @@ class Artist(models.Model): ...@@ -7,7 +7,7 @@ class Artist(models.Model):
monthly_listeners = models.IntegerField(default=0) monthly_listeners = models.IntegerField(default=0)
def __str__(self): def __str__(self):
return 'Artist Added: {}'.format(self.artist_name) return 'Added Artist: {}'.format(self.artist_name)
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length=100,default="") album_name = models.CharField(max_length=100,default="")
...@@ -19,7 +19,7 @@ class Album(models.Model): ...@@ -19,7 +19,7 @@ class Album(models.Model):
def __str__(self): def __str__(self):
return 'Album Added: {}'.format(self.album_name) return 'Added Album: {}'.format(self.album_name)
class Song(models.Model): class Song(models.Model):
song_title = models.CharField(max_length=100,default="") song_title = models.CharField(max_length=100,default="")
...@@ -31,4 +31,4 @@ class Song(models.Model): ...@@ -31,4 +31,4 @@ class Song(models.Model):
def __str__(self): def __str__(self):
return 'Song Added: {}'.format(self.song_title) return 'Added Song: {}'.format(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