Commit 717e87ae authored by Julia Anishka's avatar Julia Anishka

added more attributes to artist model

parent d609203a
...@@ -4,6 +4,11 @@ from django.db import models ...@@ -4,6 +4,11 @@ from django.db import models
class Artist(models.Model): class Artist(models.Model):
artist_name = models.CharField(max_length = 50) artist_name = models.CharField(max_length = 50)
monthly_listeners = models.IntegerField(default = 0) monthly_listeners = models.IntegerField(default = 0)
birth_name = models.CharField(max_length = 50, null=True, blank=True)
bio = models.CharField(max_length = 700, null=True, blank=True)
def __str__(self):
return self.artist_name
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length = 50) album_name = models.CharField(max_length = 50)
......
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