Commit 23e44897 authored by Alliyah Marcelo's avatar Alliyah Marcelo

Finalized models file.

parent 00ec8770
...@@ -12,9 +12,6 @@ class Artist(models.Model): ...@@ -12,9 +12,6 @@ class Artist(models.Model):
def __str__(self): def __str__(self):
return '{}: {}'.format(self.artist_name, self.birth_name) return '{}: {}'.format(self.artist_name, self.birth_name)
def get_absolute_url(self):
return reverse('artist_detail', args=[str(self.artist_name)])
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length=100) album_name = models.CharField(max_length=100)
...@@ -31,9 +28,6 @@ class Album(models.Model): ...@@ -31,9 +28,6 @@ class Album(models.Model):
def __str__(self): def __str__(self):
return '{}'.format(self.album_name) return '{}'.format(self.album_name)
#def get_absolute_url(self):
#return reverse(admin('artist_detail', args=[str(self.artist_name)]))
class Song(models.Model): class Song(models.Model):
song_title = models.CharField(max_length=100) song_title = models.CharField(max_length=100)
...@@ -53,6 +47,3 @@ class Song(models.Model): ...@@ -53,6 +47,3 @@ class Song(models.Model):
def __str__(self): def __str__(self):
return '{} ({})'.format(self.song_title, self.song_length) return '{} ({})'.format(self.song_title, self.song_length)
#def get_absolute_url(self):
#return reverse(admin('artist_detail', args=[str(self.artist_name)]))
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